Skip to content

Commit

Permalink
rename no sun damage file and rename method to make it clearer
Browse files Browse the repository at this point in the history
  • Loading branch information
Cheaterpaul committed Sep 19, 2023
1 parent 6b5b673 commit 43d54f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,11 @@ public void addDimension(TagKey<DimensionType> dimension) {
this.dimensions.add(new ExtraCodecs.TagOrElementLocation(dimension.location(), true));
}

public void noSunDamageLevel(ResourceKey<Level> level) {
public void addLevelWithoutSundamage(ResourceKey<Level> level) {
this.levels.add(level);
}

public void sunDamageLevel(ResourceKey<Level> level) {
public void addLevelWithSundamage(ResourceKey<Level> level) {
this.sunDamageLevels.add(level);
}

Expand Down
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 43d54f1

Please sign in to comment.