fix some tiles dropping stuff that can't be dropped

This commit is contained in:
Raoul Van den Berge
2015-12-22 13:07:57 +01:00
parent 3b143310e3
commit 2c65adaaee
5 changed files with 24 additions and 1 deletions

View File

@@ -83,7 +83,7 @@ public abstract class BlockBase extends Block
{
TileEntity tile = world.getTileEntity(x, y, z);
if (tile instanceof IInventory)
if (tile instanceof IInventory && tile instanceof TileBase && ((TileBase) tile).canDropInventory())
{
InventoryUtils.dropInventory(world, (IInventory) tile, x, y, z);
}