Fixed #177 - Gear shaft powering gear without touching it
This commit is contained in:
parent
8d22221c5d
commit
4d0e45c3c7
2 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,7 @@ public class BlockHotPlate extends BlockRI
|
|||
|
||||
public BlockHotPlate()
|
||||
{
|
||||
super("hotPlate", Material.wood);
|
||||
super("hotPlate", Material.rock);
|
||||
setBlockBounds(0, 0, 0, 1, 0.2f, 1);
|
||||
setTickRandomly(true);
|
||||
}
|
||||
|
|
|
@ -206,6 +206,7 @@ public class PartGear extends PartMechanical implements IMechanical, IMultiBlock
|
|||
{
|
||||
displaceCheck = 2;
|
||||
}
|
||||
|
||||
/** Look for gears outside this block space, the relative UP, DOWN, LEFT, RIGHT */
|
||||
for (int i = 0; i < 4; i++)
|
||||
{
|
||||
|
@ -216,7 +217,7 @@ public class PartGear extends PartMechanical implements IMechanical, IMultiBlock
|
|||
{
|
||||
IMechanical instance = (IMechanical) ((IMechanical) checkTile).getInstance(placementSide);
|
||||
|
||||
if (instance != null && instance != this && instance.canConnect(checkDir.getOpposite(), this))
|
||||
if (instance != null && instance != this && instance.canConnect(checkDir.getOpposite(), this) && !(instance instanceof PartGearShaft))
|
||||
{
|
||||
connections[checkDir.ordinal()] = instance;
|
||||
getNetwork().merge(instance.getNetwork());
|
||||
|
|
Loading…
Reference in a new issue