Fixed node parts not reconstructing on initiation

This commit is contained in:
Calclavia 2014-09-22 19:04:25 +08:00
parent a8bd91c79e
commit 6ad354036f

View file

@ -9,10 +9,16 @@ import universalelectricity.api.core.grid.{INode, INodeProvider, ISave}
* A node trait that can be mixed into any multipart nodes. Mixing this trait will cause nodes to reconstruct/deconstruct when needed. * A node trait that can be mixed into any multipart nodes. Mixing this trait will cause nodes to reconstruct/deconstruct when needed.
* @author Calclavia * @author Calclavia
*/ */
trait TNodePartConnector extends TMultiPart with INodeProvider trait TNodePartConnector extends PartAbstract with INodeProvider
{ {
protected lazy val node: INode = null protected lazy val node: INode = null
override def start()
{
super.start()
node.reconstruct()
}
override def onWorldJoin() override def onWorldJoin()
{ {
node.reconstruct() node.reconstruct()