Dont't crash with paintable block being painted as travel anchor

This commit is contained in:
HenryLoenwind committed 2015-11-15 03:10:54 +01:00
1 parent aa78376ed9
commit 41534df1d6
1 file changed
+2 -2
@@ -100,7 +100,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof IPaintableTileEntity) {
Block sourceBlock = ((IPaintableTileEntity) te).getSourceBlock();
if (sourceBlock != null) {
if (sourceBlock != null && sourceBlock != this) {
return sourceBlock.getIcon(blockSide, ((IPaintableTileEntity) te).getSourceBlockMetadata());
}
}
@@ -202,7 +202,7 @@ public class BlockTravelAnchor extends BlockEio implements IGuiHandler, ITileEnt
TileEntity te = world.getTileEntity(x, y, z);
if (te instanceof IPaintableTileEntity) {
Block sourceBlock = ((IPaintableTileEntity) te).getSourceBlock();
if (sourceBlock != null) {
if (sourceBlock != null && sourceBlock != this) {
return sourceBlock.colorMultiplier(world, x, y, z);
}
}