Fixed TileMotor's Item Render and error spam when getNodes was called
This commit is contained in:
parent
b33cd10e7b
commit
cc4ae541e3
|
@ -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 "
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue