Made network data not get filled up more than it should by clearing its connections when reading from NBT

This commit is contained in:
Ellpeck 2016-06-04 23:43:50 +02:00
parent e17a48d7f0
commit 1aa979195f

View file

@ -61,6 +61,8 @@ public class WorldData{
private void readFromNBT(NBTTagCompound compound){
//Laser World Data
this.laserRelayNetworks.clear();
NBTTagList networkList = compound.getTagList("Networks", 10);
for(int i = 0; i < networkList.tagCount(); i++){
Network network = LaserRelayConnectionHandler.readNetworkFromNBT(networkList.getCompoundTagAt(i));