mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 17:01:56 +01:00
Fix door breaking difficulty defaults for vindicator (#7795)
This commit is contained in:
parent
6084c2a6bd
commit
7483a45e55
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||||
+ private void setupEntityBreakingDoors() {
|
+ private void setupEntityBreakingDoors() {
|
||||||
+ for (net.minecraft.world.entity.EntityType<?> entityType : entitiesValidForBreakDoors) {
|
+ 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;
|
+ 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;
|
+ difficultyPredicate = net.minecraft.world.entity.monster.Vindicator.DOOR_BREAKING_PREDICATE;
|
||||||
+ }
|
+ }
|
||||||
+ entitiesDifficultyBreakDoors.put(
|
+ entitiesDifficultyBreakDoors.put(
|
||||||
|
|
Loading…
Reference in a new issue