mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-24 05:54:27 +00:00
Dont't crash with paintable block being painted as travel anchor
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user