Skip to content

Commit

Permalink
Read CHANGES.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RadonCoding committed Apr 3, 2024
1 parent c0170e7 commit c25e050
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import radon.jujutsu_kaisen.util.RotationUtil;

public class VeilDeactivate extends Ability {
public static final double RANGE = 64.0D;

@Override
public boolean shouldTrigger(PathfinderMob owner, @Nullable LivingEntity target) {
return false;
Expand All @@ -50,7 +52,7 @@ public ActivationType getActivationType(LivingEntity owner) {
public void run(LivingEntity owner) {
if (!(owner.level() instanceof ServerLevel level)) return;

if (!(RotationUtil.getLookAtHit(owner, VeilActivate.RANGE) instanceof BlockHitResult hit)) return;
if (!(RotationUtil.getLookAtHit(owner, RANGE) instanceof BlockHitResult hit)) return;

BlockPos pos = hit.getBlockPos();

Expand Down

0 comments on commit c25e050

Please sign in to comment.