Fixed a bug where loading nodes would abort when a single node has an error while reading

This commit is contained in:
raoulvdberge
2017-06-20 23:23:18 +02:00
parent 18838ba46d
commit 8014fe1a5d
2 changed files with 14 additions and 1 deletions

View File

@@ -1,5 +1,8 @@
# Refined Storage Changelog
### 1.5.2
- Fixed a bug where loading nodes would abort when a single node has an error while reading (raoulvdberge)
### 1.5.1
- Updated Forge to 2340 (raoulvdberge)
- Re-added MCMultiPart support (raoulvdberge)

View File

@@ -60,7 +60,17 @@ public class NetworkNodeManager extends WorldSavedData implements INetworkNodeMa
INetworkNodeFactory factory = API.instance().getNetworkNodeRegistry().get(id);
if (factory != null) {
nodes.put(pos, factory.create(data, world, pos));
INetworkNode node = null;
try {
node = factory.create(data, world, pos);
} catch (Throwable t) {
t.printStackTrace();
}
if (node != null) {
nodes.put(pos, node);
}
}
}
}