Fix door breaking difficulty defaults for vindicator (#7795)

This commit is contained in:
Jake Potrebic 2022-05-07 11:38:15 -07:00
parent 6084c2a6bd
commit 7483a45e55

View file

@ -19,7 +19,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ private void setupEntityBreakingDoors() {
+ for (net.minecraft.world.entity.EntityType<?> entityType : entitiesValidForBreakDoors) {
+ java.util.function.Predicate<net.minecraft.world.Difficulty> difficultyPredicate = net.minecraft.world.entity.monster.Zombie.DOOR_BREAKING_PREDICATE;
+ if (entityType.getBaseClass() == net.minecraft.world.entity.monster.Vindicator.class) {
+ if (entityType == net.minecraft.world.entity.EntityType.VINDICATOR) {
+ difficultyPredicate = net.minecraft.world.entity.monster.Vindicator.DOOR_BREAKING_PREDICATE;
+ }
+ entitiesDifficultyBreakDoors.put(