mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-19 13:02:12 +00:00
SPIGOT-6778: Block#beakNaturally doesn't drop items in chests
This commit is contained in:
parent
41832ce7e4
commit
f49ffa7a50
1 changed files with 2 additions and 1 deletions
|
@ -470,7 +470,8 @@ public class CraftBlock implements Block {
|
|||
result = true;
|
||||
}
|
||||
|
||||
return setTypeAndData(Blocks.AIR.defaultBlockState(), true) && result;
|
||||
// SPIGOT-6778: Directly call setBlock instead of setTypeAndData, so that the tile entiy is not removed and custom remove logic is run.
|
||||
return world.setBlock(position, Blocks.AIR.defaultBlockState(), 3) && result;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Add table
Reference in a new issue