From 6dc65d28c63416f89f2e43d227484d75f25c0352 Mon Sep 17 00:00:00 2001 From: BillyGalbreath Date: Tue, 6 Sep 2022 13:37:24 -0500 Subject: [PATCH] Fix MC-179072 --- patches/server/0297-Fix-MC-179072.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 patches/server/0297-Fix-MC-179072.patch diff --git a/patches/server/0297-Fix-MC-179072.patch b/patches/server/0297-Fix-MC-179072.patch new file mode 100644 index 000000000..9690b79d9 --- /dev/null +++ b/patches/server/0297-Fix-MC-179072.patch @@ -0,0 +1,24 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: BillyGalbreath +Date: Tue, 6 Sep 2022 13:29:14 -0500 +Subject: [PATCH] Fix MC-179072 + + +diff --git a/src/main/java/net/minecraft/world/entity/ai/goal/SwellGoal.java b/src/main/java/net/minecraft/world/entity/ai/goal/SwellGoal.java +index 19540fd4a7f992888fadb6501d0c8a5a7e71fcf6..8562cbfa258499bc04e5ffbcb4402dfc78ed20c3 100644 +--- a/src/main/java/net/minecraft/world/entity/ai/goal/SwellGoal.java ++++ b/src/main/java/net/minecraft/world/entity/ai/goal/SwellGoal.java +@@ -21,6 +21,13 @@ public class SwellGoal extends Goal { + return this.creeper.getSwellDir() > 0 || livingEntity != null && this.creeper.distanceToSqr(livingEntity) < 9.0D; + } + ++ // Purpur start ++ @Override ++ public boolean canContinueToUse() { ++ return !net.minecraft.world.entity.EntitySelector.NO_CREATIVE_OR_SPECTATOR.test(this.creeper.getTarget()) && canUse(); ++ } ++ // Purpur end ++ + @Override + public void start() { + this.creeper.getNavigation().stop();