stop copper golem from shulkerception, closes #1752, supercedes #1753

This commit is contained in:
granny
2026-01-18 16:43:07 -08:00
parent 88d1824d22
commit 769ffc2439

View File

@@ -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;