Attempt to fix reflection InvocationTargetException

This commit is contained in:
Calclavia 2013-12-01 17:39:22 +08:00
parent 180401b8ef
commit 5865063fa0

View file

@ -150,7 +150,7 @@ public class MekanismInduction implements IModule
{ {
try try
{ {
itemPartWire = (Item) Class.forName("mekanism.induction.common.wire.ItemPartWire").getConstructor(Integer.TYPE).newInstance(getNextItemID()); itemPartWire = (Item) Class.forName("mekanism.induction.common.wire.ItemPartWire").getDeclaredConstructor(Integer.TYPE).newInstance(getNextItemID());
Mekanism.logger.fine("Mekanism Induction multipart loaded."); Mekanism.logger.fine("Mekanism Induction multipart loaded.");
} }
catch (Exception e) catch (Exception e)