diff options
-rw-r--r-- | src/main/java/gregtech/api/GregTechAPI.java | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/main/java/gregtech/api/GregTechAPI.java b/src/main/java/gregtech/api/GregTechAPI.java index c485c8e47e..70d1a0c2ce 100644 --- a/src/main/java/gregtech/api/GregTechAPI.java +++ b/src/main/java/gregtech/api/GregTechAPI.java @@ -268,8 +268,6 @@ public class GregTechAPI { sLoadStarted = false, sLoadFinished = false, sPostloadStarted = false, sPostloadFinished = false, sFullLoadFinished = false; - private static Class<BaseMetaTileEntity> sBaseMetaTileEntityClass = null; - @SuppressWarnings("unchecked") private static final IntFunction<TileEntity>[] teCreators = new IntFunction[16]; @@ -390,16 +388,8 @@ public class GregTechAPI { * Electricity) we have to use invocation at the constructor of the BaseMetaTileEntity. */ public static BaseMetaTileEntity constructBaseMetaTileEntity() { - if (sBaseMetaTileEntityClass == null) { - try { - return (sBaseMetaTileEntityClass = BaseMetaTileEntity.class).getDeclaredConstructor() - .newInstance(); - } catch (Throwable ignored) {} - } - try { - return sBaseMetaTileEntityClass.getDeclaredConstructor() - .newInstance(); + return new BaseMetaTileEntity(); } catch (Throwable e) { GTLog.err.println("GTMod: Fatal Error occurred while initializing TileEntities, crashing Minecraft."); e.printStackTrace(GTLog.err); |