Fix apothecary light level crash, tiny potato render crash. Closes #17

This commit is contained in:
Vincent Lee committed 2016-01-04 22:47:47 -06:00
1 parent ab4f6f6433
commit 0e301a4e33
2 files changed
+2 -2

No files matched your search

@@ -153,7 +153,7 @@ public class BlockAltar extends BlockModContainer implements ILexiconable {
@Override
public int getLightValue(IBlockAccess world, BlockPos pos) {
TileAltar tile = (TileAltar) world.getTileEntity(pos);
return tile.hasLava ? 15 : 0;
return (tile != null && tile.hasLava) ? 15 : 0;
}
@Override