Archiviert
13
0

SPIGOT-4579: Shulker boxes not dropping in creative

Dieser Commit ist enthalten in:
md_5 2019-01-14 15:53:54 +11:00
Ursprung 50fbc3f190
Commit 0c715b32b0

Datei anzeigen

@ -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<>();
+