mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 17:57:34 +01:00
SPIGOT-6778: Block#beakNaturally doesn't drop items in chests
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
96c615d4b8
commit
13aa9b7211
@ -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…
Reference in New Issue
Block a user