From 8014fe1a5d3ba437a4ec2ab429301e29700d8313 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Tue, 20 Jun 2017 23:23:18 +0200 Subject: [PATCH] Fixed a bug where loading nodes would abort when a single node has an error while reading --- CHANGELOG.md | 3 +++ .../apiimpl/network/NetworkNodeManager.java | 12 +++++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ce793d771..5713d4997 100755 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/NetworkNodeManager.java b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/NetworkNodeManager.java index bac6ffbd4..4949d0b59 100644 --- a/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/NetworkNodeManager.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/apiimpl/network/NetworkNodeManager.java @@ -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); + } } } }