mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fix some of the things that were broken, add more type-specs.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user