Skip to content

Commit

Permalink
rename no sun damage file
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Sep 19, 2023
1 parent 6b5b673 commit 72fccc8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public RestrictSunVampireGoal(T creature) {
@Override
public boolean canUse() {
if (vampire.tickCount % 10 == 3) {
cache = VampirismAPI.sundamageRegistry().hasSunDamage(vampire.level, vampire.blockPosition()) && !Helper.isEntityInArtificalVampireFogArea(vampire);
cache = VampirismAPI.sundamageRegistry().hasSunDamage(vampire.level(), vampire.blockPosition()) && !Helper.isEntityInArtificalVampireFogArea(vampire);
}
return cache && vampire.getCommandSenderWorld().isDay() && !vampire.isIgnoringSundamage();
}
Expand Down

0 comments on commit 72fccc8

Please sign in to comment.