mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 20:12:19 +00:00
Fix #1486 Crash from candle block
This commit is contained in:
1 parent
c5c056750a
commit
781b4d883b
1 file changed
+2
-1
@@ -120,7 +120,8 @@ public class BlockCandle extends BlockTorch implements IItemModelRegister, ITile
|
||||
|
||||
@Override
|
||||
public IBlockState getActualState(IBlockState state, IBlockAccess world, BlockPos pos) {
|
||||
if (((TileCandle) world.getTileEntity(pos)).isLit()) {
|
||||
TileCandle tileCandle = TileUtil.getTile(world, pos, TileCandle.class);
|
||||
if (tileCandle != null && tileCandle.isLit()) {
|
||||
state = state.withProperty(STATE, State.ON);
|
||||
}
|
||||
return super.getActualState(state, world, pos);
|
||||
|
||||
Reference in new issue
Block a user