Fixed TileMotor's Item Render and error spam when getNodes was called

This commit is contained in:
Robert S 2014-09-11 15:31:26 -04:00
parent b33cd10e7b
commit cc4ae541e3
2 changed files with 10 additions and 1 deletions

View file

@ -22,6 +22,9 @@ class TileMotor extends TileElectric(Material.iron) with IRotatable {
var isInversed: Boolean = true
private var gearRatio: Byte = 0
//Constructor
this.normalRender(false);
def toggleGearRatio: Byte = {
return ((gearRatio + 1) % 3).asInstanceOf[Byte]
}
@ -108,6 +111,12 @@ class TileMotor extends TileElectric(Material.iron) with IRotatable {
return super.getNode(nodeType, from)
}
override def getNodes(nodes: java.util.List[INode])
{
nodes.add(this.mech_node)
nodes.add(this.electricNode)
}
override def toString: String = {
return "[TileMotor]" + x + "x " + y + "y " + z + "z "
}

View file

@ -74,7 +74,7 @@ public class TileWindTurbine extends TileTurbine
int deviation = checkCount % 7;
ForgeDirection checkDir;
Vector3 check = new Vector3(this);
Vector3 check;
switch (checkCount / 7 % 4)
{