mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-4579: Shulker boxes not dropping in creative
By: md_5 <git@md-5.net>
This commit is contained in:
parent
4ae33ae930
commit
6f596cf9de
1 changed files with 1 additions and 1 deletions
|
@ -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<>();
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue