Make networks form when loaded.

That was so annoying, feel like there should be a way of doing this with tile entities, but hey, I've always said multiparts are nicer to work with than vanilla block/tiles
This commit is contained in:
Ben Spiers 2013-09-21 01:05:04 +01:00
parent b1bf9be852
commit 81778cebb6
2 changed files with 14 additions and 7 deletions

View file

@ -110,4 +110,18 @@ public abstract class PartConductor extends PartAdvanced implements IConductor
{
return true;
}
@Override
public void onAdded()
{
super.onAdded();
refresh();
}
@Override
public void onChunkLoad()
{
super.onChunkLoad();
refresh();
}
}

View file

@ -375,13 +375,6 @@ public class PartWire extends PartUniversalConductor implements IPacketReceiver,
this.isInsulated = nbt.getBoolean("isInsulated");
}
@Override
public void onAdded()
{
super.onAdded();
refresh();
}
@Override
public boolean doesTick()
{