Fixed the Platforms crashing if swapped when there's an adjacend TileEntity. Closes #245

This commit is contained in:
Lizbeth Rika committed 2014-08-19 21:23:18 +01:00
1 parent 8584ecbdb4
commit f264ca42a4
1 file changed
+1 -1
@@ -45,7 +45,7 @@ public class TilePlatform extends TileCamo implements IManaCollisionGhost {
int y = tile.yCoord + dir.offsetY;
int z = tile.zCoord + dir.offsetZ;
TileEntity tileAt = worldObj.getTileEntity(x, y, z);
if(tileAt != null && tile instanceof TilePlatform) {
if(tileAt != null && tileAt instanceof TilePlatform) {
TilePlatform platform = (TilePlatform) tileAt;
if(empty ? platform.camo != null : platform.camo == null)
swapSelfAndPass(platform, empty);