Fixed empty string storage in existing Alchemy Arrays.
This commit is contained in:
parent
ad546380a3
commit
11e56158d3
5 changed files with 16 additions and 10 deletions
|
@ -167,9 +167,13 @@ public class BlockAltar extends BlockContainer implements IVariantProvider, IDoc
|
|||
@Override
|
||||
public void breakBlock(World world, BlockPos blockPos, IBlockState blockState)
|
||||
{
|
||||
TileAltar tileAltar = (TileAltar) world.getTileEntity(blockPos);
|
||||
if (tileAltar != null)
|
||||
tileAltar.dropItems();
|
||||
TileEntity tile = world.getTileEntity(blockPos);
|
||||
if (tile instanceof TileAltar)
|
||||
{
|
||||
TileAltar tileAltar = (TileAltar) world.getTileEntity(blockPos);
|
||||
if (tileAltar != null)
|
||||
tileAltar.dropItems();
|
||||
}
|
||||
|
||||
super.breakBlock(world, blockPos, blockState);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue