mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-13 16:54:06 +00:00
Fixed the Platforms crashing if swapped when there's an adjacend TileEntity. Closes #245
This commit is contained in:
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);
|
||||
|
||||
Reference in new issue
Block a user