Fixed a bug where loading nodes would abort when a single node has an error while reading
This commit is contained in:
@@ -1,5 +1,8 @@
|
|||||||
# Refined Storage Changelog
|
# 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
|
### 1.5.1
|
||||||
- Updated Forge to 2340 (raoulvdberge)
|
- Updated Forge to 2340 (raoulvdberge)
|
||||||
- Re-added MCMultiPart support (raoulvdberge)
|
- Re-added MCMultiPart support (raoulvdberge)
|
||||||
|
|||||||
@@ -60,7 +60,17 @@ public class NetworkNodeManager extends WorldSavedData implements INetworkNodeMa
|
|||||||
INetworkNodeFactory factory = API.instance().getNetworkNodeRegistry().get(id);
|
INetworkNodeFactory factory = API.instance().getNetworkNodeRegistry().get(id);
|
||||||
|
|
||||||
if (factory != null) {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user