From e371d70b13cd2f810240c1ed687acba0fbdc18bb Mon Sep 17 00:00:00 2001 From: Robert Date: Sun, 10 Nov 2013 20:28:02 -0500 Subject: [PATCH] Made Object registry throw on blockID conflict --- src/dark/core/registration/ModObjectRegistry.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/dark/core/registration/ModObjectRegistry.java b/src/dark/core/registration/ModObjectRegistry.java index 9f106b0f0..f0d0e8435 100644 --- a/src/dark/core/registration/ModObjectRegistry.java +++ b/src/dark/core/registration/ModObjectRegistry.java @@ -66,6 +66,10 @@ public class ModObjectRegistry { block = blockClass.newInstance(); } + catch (IllegalArgumentException e) + { + throw e; + } catch (Exception e) { e.printStackTrace();