Fixed wire resistance
This commit is contained in:
parent
48480394ee
commit
32e9e3a8c4
2 changed files with 7 additions and 4 deletions
|
@ -63,7 +63,6 @@ class TileBattery extends TileAdvanced(Material.iron) with TElectric with IPacke
|
|||
if (doCharge)
|
||||
{
|
||||
dcNode.buffer(100)
|
||||
doCharge = false
|
||||
}
|
||||
|
||||
if (markDistributionUpdate && ticks % 5 == 0)
|
||||
|
|
|
@ -82,7 +82,6 @@ class PartFlatWire extends PartAbstract with TWire with TFacePart with TNormalOc
|
|||
{
|
||||
this.side = (side ^ 1).toByte
|
||||
setMaterial(meta)
|
||||
node.resistance = material.resistance
|
||||
}
|
||||
|
||||
override def update()
|
||||
|
@ -90,7 +89,13 @@ class PartFlatWire extends PartAbstract with TWire with TFacePart with TNormalOc
|
|||
super.update()
|
||||
|
||||
if (node.current > 0)
|
||||
println("CURRENT!" + node.current)
|
||||
println("Current is flowing: " + node)
|
||||
}
|
||||
|
||||
override def setMaterial(i: Int)
|
||||
{
|
||||
super.setMaterial(i)
|
||||
node.resistance = material.resistance
|
||||
}
|
||||
|
||||
override def activate(player: EntityPlayer, hit: MovingObjectPosition, item: ItemStack): Boolean =
|
||||
|
@ -98,7 +103,6 @@ class PartFlatWire extends PartAbstract with TWire with TFacePart with TNormalOc
|
|||
if (!world.isRemote)
|
||||
{
|
||||
println(node)
|
||||
println(node.connections.size())
|
||||
}
|
||||
|
||||
return true
|
||||
|
|
Loading…
Add table
Reference in a new issue