mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-24 22:14:45 +00:00
Fix #332
This commit is contained in:
2 files changed
+12
-9
No files matched your search
@@ -123,9 +123,10 @@ public class BlockOpenCrate extends BlockMod implements ILexiconable, IWandable,
|
||||
|
||||
@Override
|
||||
public void breakBlock(@Nonnull World par1World, @Nonnull BlockPos pos, @Nonnull IBlockState state) {
|
||||
TileSimpleInventory inv = (TileSimpleInventory) par1World.getTileEntity(pos);
|
||||
|
||||
InventoryHelper.dropInventory(inv, par1World, state, pos);
|
||||
if (!par1World.isRemote) {
|
||||
TileSimpleInventory inv = (TileSimpleInventory) par1World.getTileEntity(pos);
|
||||
InventoryHelper.dropInventory(inv, par1World, state, pos);
|
||||
}
|
||||
|
||||
super.breakBlock(par1World, pos, state);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user