Fixed node parts not reconstructing on initiation
This commit is contained in:
parent
a8bd91c79e
commit
6ad354036f
1 changed files with 7 additions and 1 deletions
|
@ -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.
|
||||
* @author Calclavia
|
||||
*/
|
||||
trait TNodePartConnector extends TMultiPart with INodeProvider
|
||||
trait TNodePartConnector extends PartAbstract with INodeProvider
|
||||
{
|
||||
protected lazy val node: INode = null
|
||||
|
||||
override def start()
|
||||
{
|
||||
super.start()
|
||||
node.reconstruct()
|
||||
}
|
||||
|
||||
override def onWorldJoin()
|
||||
{
|
||||
node.reconstruct()
|
||||
|
|
Loading…
Reference in a new issue