mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 23:45:57 +00:00
Fix apothecary light level crash, tiny potato render crash. Closes #17
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user