Skip to content

Commit 6544e6e

Browse files
committed
Merge branch 'ver/1.21.10' into ver/1.21.11
2 parents 4db5f6c + 0a2dc04 commit 6544e6e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

purpur-server/minecraft-patches/sources/net/minecraft/world/entity/ai/behavior/TransportItemsBetweenContainers.java.patch

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,12 @@
3131
}
3232

3333
private static double getInteractionRange(PathfinderMob mob) {
34+
@@ -525,7 +_,7 @@
35+
int i = 0;
36+
37+
for (ItemStack itemStack : container) {
38+
- if (!itemStack.isEmpty()) {
39+
+ if (!itemStack.isEmpty() && (!(container instanceof net.minecraft.world.level.block.entity.ShulkerBoxBlockEntity) || !itemStack.is(net.minecraft.tags.ItemTags.SHULKER_BOXES))) { // Purpur - copper golem can place items in barrels or shulkers option
40+
int min = Math.min(itemStack.getCount(), 16);
41+
return container.removeItem(i, min);
42+
}

0 commit comments

Comments
 (0)