From 769ffc24396392906e2125160e560b616c83c56c Mon Sep 17 00:00:00 2001 From: granny Date: Sun, 18 Jan 2026 16:43:07 -0800 Subject: [PATCH] stop copper golem from shulkerception, closes #1752, supercedes #1753 --- .../TransportItemsBetweenContainers.java.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/purpur-server/minecraft-patches/sources/net/minecraft/world/entity/ai/behavior/TransportItemsBetweenContainers.java.patch b/purpur-server/minecraft-patches/sources/net/minecraft/world/entity/ai/behavior/TransportItemsBetweenContainers.java.patch index 3ff26e6d1..fc23b30ed 100644 --- a/purpur-server/minecraft-patches/sources/net/minecraft/world/entity/ai/behavior/TransportItemsBetweenContainers.java.patch +++ b/purpur-server/minecraft-patches/sources/net/minecraft/world/entity/ai/behavior/TransportItemsBetweenContainers.java.patch @@ -31,6 +31,18 @@ } private static double getInteractionRange(PathfinderMob mob) { +@@ -488,6 +_,11 @@ + } + + private static boolean matchesLeavingItemsRequirement(PathfinderMob mob, Container container) { ++ // Purpur start - copper golem can place items in barrels or shulkers option ++ if (mob.level().purpurConfig.copperGolemCanOpenShulker && container instanceof net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity && mob.getMainHandItem().is(net.minecraft.tags.ItemTags.SHULKER_BOXES)) { ++ return false; ++ } ++ // Purpur end - copper golem can place items in barrels or shulkers option + return container.isEmpty() || hasItemMatchingHandItem(mob, container); + } + @@ -525,7 +_,7 @@ int i = 0;