Make a change to the network once it is removed so that TileEntities update accordingly

This commit is contained in:
Ellpeck 2017-01-18 14:41:21 +01:00
parent 996b997363
commit 45f7b8f1d4

View file

@ -86,6 +86,8 @@ public final class LaserRelayConnectionHandler implements ILaserRelayConnectionH
public void removeRelayFromNetwork(BlockPos relay, World world){
Network network = this.getNetworkFor(relay, world);
if(network != null){
network.changeAmount++;
//Setup new network (so that splitting a network will cause it to break into two)
WorldData data = WorldData.get(world);
data.laserRelayNetworks.remove(network);