From 6f596cf9de6813ac5f8a0c1e584ef8346dde770c Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 14 Jan 2019 15:53:54 +1100 Subject: [PATCH] SPIGOT-4579: Shulker boxes not dropping in creative By: md_5 --- paper-server/nms-patches/PlayerInteractManager.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paper-server/nms-patches/PlayerInteractManager.patch b/paper-server/nms-patches/PlayerInteractManager.patch index 6364448e6b..93744cdba7 100644 --- a/paper-server/nms-patches/PlayerInteractManager.patch +++ b/paper-server/nms-patches/PlayerInteractManager.patch @@ -202,7 +202,7 @@ + // CraftBukkit start - Special case skulls, their item data comes from a tile entity (Also check if block should drop items) + // And shulker boxes too for duplication on BlockPlaceEvent cancel reasons (Also check if block should drop items) -+ if ((iblockdata.getBlock() instanceof BlockSkullAbstract || iblockdata.getBlock() instanceof BlockShulkerBox) && !this.isCreative() && event.isDropItems()) { ++ if (((iblockdata.getBlock() instanceof BlockSkullAbstract && !this.isCreative()) || iblockdata.getBlock() instanceof BlockShulkerBox) && event.isDropItems()) { + org.bukkit.block.BlockState state = bblock.getState(); + world.captureDrops = new ArrayList<>(); +