From be1b22a3ee9af758e88abf7e22dcec68efe5047f Mon Sep 17 00:00:00 2001 From: AlgorithmX2 Date: Tue, 8 Apr 2014 22:14:03 -0500 Subject: [PATCH] Crash, no log! --- core/sync/GuiBridge.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/sync/GuiBridge.java b/core/sync/GuiBridge.java index 923ddb085..cde0902f0 100644 --- a/core/sync/GuiBridge.java +++ b/core/sync/GuiBridge.java @@ -54,7 +54,6 @@ import appeng.container.implementations.ContainerUpgradeable; import appeng.container.implementations.ContainerVibrationChamber; import appeng.container.implementations.ContainerWireless; import appeng.container.implementations.ContainerWirelessTerm; -import appeng.core.AELog; import appeng.helpers.IInterfaceHost; import appeng.helpers.IPriorityHost; import appeng.helpers.WirelessTerminalGuiObject; @@ -203,8 +202,7 @@ public enum GuiBridge implements IGuiHandler if ( target == null ) { - AELog.severe( "Cannot find " + Container.getName() + "( " + typeName( inventory ) + ", " + typeName( tE ) + " )" ); - return null; + throw new RuntimeException( "Cannot find " + Container.getName() + "( " + typeName( inventory ) + ", " + typeName( tE ) + " )" ); } return target.newInstance( inventory, tE ); @@ -227,8 +225,7 @@ public enum GuiBridge implements IGuiHandler if ( target == null ) { - AELog.severe( "Cannot find " + Container.getName() + "( " + typeName( inventory ) + ", " + typeName( tE ) + " )" ); - return null; + throw new RuntimeException( "Cannot find " + Container.getName() + "( " + typeName( inventory ) + ", " + typeName( tE ) + " )" ); } return target.newInstance( inventory, tE );