mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Made network data not get filled up more than it should by clearing its connections when reading from NBT
This commit is contained in:
parent
e17a48d7f0
commit
1aa979195f
1 changed files with 2 additions and 0 deletions
|
@ -61,6 +61,8 @@ public class WorldData{
|
||||||
|
|
||||||
private void readFromNBT(NBTTagCompound compound){
|
private void readFromNBT(NBTTagCompound compound){
|
||||||
//Laser World Data
|
//Laser World Data
|
||||||
|
this.laserRelayNetworks.clear();
|
||||||
|
|
||||||
NBTTagList networkList = compound.getTagList("Networks", 10);
|
NBTTagList networkList = compound.getTagList("Networks", 10);
|
||||||
for(int i = 0; i < networkList.tagCount(); i++){
|
for(int i = 0; i < networkList.tagCount(); i++){
|
||||||
Network network = LaserRelayConnectionHandler.readNetworkFromNBT(networkList.getCompoundTagAt(i));
|
Network network = LaserRelayConnectionHandler.readNetworkFromNBT(networkList.getCompoundTagAt(i));
|
||||||
|
|
Loading…
Reference in a new issue