mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 19:05:16 +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
@@ -345,7 +345,7 @@ public class RenderTileTinyPotato extends TileEntitySpecialRenderer {
|
||||
GlStateManager.color(1F, 1F, 1F);
|
||||
|
||||
MovingObjectPosition pos = mc.objectMouseOver;
|
||||
if(!name.isEmpty() && pos != null && pos.getBlockPos().equals(potato.getPos())) {
|
||||
if(!name.isEmpty() && pos != null && potato.getPos().equals(pos.getBlockPos())) {
|
||||
GlStateManager.pushMatrix();
|
||||
GlStateManager.translate(0.5F, 0.75F, 0.5F);
|
||||
GlStateManager.rotate(-mc.getRenderManager().playerViewY, 0.0F, 1.0F, 0.0F);
|
||||
|
||||
@@ -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