Fix some of the things that were broken, add more type-specs.

This commit is contained in:
Ben Spiers committed 2016-02-08 22:46:06 +00:00
1 parent 7440adb103
commit 7b4fefeb60
55 files changed
+152 -118

No files matched your search

@@ -302,6 +302,9 @@ public abstract class BlockMachine extends BlockContainer implements ISpecialBou
}
}
tileEntity.setFacing((short)change);
tileEntity.redstone = world.isBlockIndirectlyGettingPowered(pos) > 0;
if(tileEntity instanceof TileEntityLogisticalSorter)
{
TileEntityLogisticalSorter transporter = (TileEntityLogisticalSorter)tileEntity;
@@ -314,7 +317,7 @@ public abstract class BlockMachine extends BlockContainer implements ISpecialBou
if(tile instanceof IInventory)
{
change = dir.getOpposite().ordinal();
tileEntity.setFacing((short)dir.getOpposite().ordinal());
break;
}
}
@@ -326,9 +329,6 @@ public abstract class BlockMachine extends BlockContainer implements ISpecialBou
teleporter.owner = placer.getName();
}
tileEntity.setFacing((short)change);
tileEntity.redstone = world.isBlockIndirectlyGettingPowered(pos) > 0;
if(tileEntity instanceof IBoundingBlock)
{
((IBoundingBlock)tileEntity).onPlace();