From 87d2eb2d3b3e51683fb8467a64a9fb15cdaaefcc Mon Sep 17 00:00:00 2001 From: Jake Potrebic Date: Sat, 7 May 2022 11:38:15 -0700 Subject: [PATCH] Fix door breaking difficulty defaults for vindicator (#7795) --- .../server/0567-Configurable-door-breaking-difficulty.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/patches/server/0567-Configurable-door-breaking-difficulty.patch b/patches/server/0567-Configurable-door-breaking-difficulty.patch index f434fd36d6..45702113a6 100644 --- a/patches/server/0567-Configurable-door-breaking-difficulty.patch +++ b/patches/server/0567-Configurable-door-breaking-difficulty.patch @@ -6,7 +6,7 @@ Subject: [PATCH] Configurable door breaking difficulty Co-authored-by: Doc diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java -index bd28bbab098441bdede682c6b269c1d19a2dd062..082a7d3c7ebaa66e89dbab3ebf7c9b5451e7180b 100644 +index bd28bbab098441bdede682c6b269c1d19a2dd062..13fc7c21283f09fd135a12649776bb1355da4154 100644 --- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java +++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java @@ -137,6 +137,27 @@ public class PaperWorldConfig { @@ -19,7 +19,7 @@ index bd28bbab098441bdede682c6b269c1d19a2dd062..082a7d3c7ebaa66e89dbab3ebf7c9b54 + private void setupEntityBreakingDoors() { + for (net.minecraft.world.entity.EntityType entityType : entitiesValidForBreakDoors) { + java.util.function.Predicate 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(