Fixed #360 - Generator not checking mechanical node sides
This commit is contained in:
parent
eddc09c1cb
commit
a7a5743c4b
2 changed files with 2 additions and 2 deletions
|
@ -86,7 +86,7 @@ public class TileGenerator extends TileElectrical implements IRotatable
|
|||
IMechanical mech = ((IMechanical) tile).getInstance(outputDir.getOpposite());
|
||||
long extract = energy.extractEnergy(energy.getEnergy() / 2, false);
|
||||
|
||||
if (mech != null)
|
||||
if (mech != null && mech.canConnect(outputDir.getOpposite(), this))
|
||||
{
|
||||
if (extract > 0)
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ public class ItemImprint extends Item
|
|||
this.setTextureName(Reference.PREFIX + "imprint");
|
||||
this.setCreativeTab(TabRI.DEFAULT);
|
||||
this.setHasSubtypes(true);
|
||||
this.maxStackSize = 1;
|
||||
this.setMaxStackSize(1);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue