A bunch of back-end for Potions, as well as a minor glitch fix on the Demon Crystals when broken in incorrect manners.
This commit is contained in:
parent
6790d39c7e
commit
c618f27a87
12 changed files with 537 additions and 1 deletions
|
@ -77,6 +77,10 @@ public class BlockDemonCrystal extends BlockContainer
|
|||
@Override
|
||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos)
|
||||
{
|
||||
if (world.getTileEntity(pos) == null)
|
||||
{
|
||||
return state;
|
||||
}
|
||||
TileDemonCrystal tile = (TileDemonCrystal) world.getTileEntity(pos);
|
||||
return state.withProperty(AGE, tile.getCrystalCountForRender()).withProperty(ATTACHED, tile.getPlacement());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue