Fixed #360 - Generator not checking mechanical node sides

This commit is contained in:
Calclavia 2014-03-03 22:36:19 +08:00
parent eddc09c1cb
commit a7a5743c4b
2 changed files with 2 additions and 2 deletions

View file

@ -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)
{

View file

@ -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