diff --git a/common/src/main/java/muramasa/gregtech/GregTech.java b/common/src/main/java/muramasa/gregtech/GregTech.java index 857334ce9..6d7877b25 100644 --- a/common/src/main/java/muramasa/gregtech/GregTech.java +++ b/common/src/main/java/muramasa/gregtech/GregTech.java @@ -34,7 +34,6 @@ import muramasa.gregtech.loader.machines.generator.LargeBoilerLoader; import muramasa.gregtech.loader.multi.*; import muramasa.gregtech.proxy.CommonHandler; -import muramasa.gregtech.proxy.ServerHandler; import net.minecraft.world.entity.ai.attributes.AttributeInstance; import net.minecraft.world.entity.ai.attributes.AttributeModifier; import net.minecraft.world.entity.ai.attributes.Attributes; @@ -63,7 +62,6 @@ public void onRegistrarInit() { new SpaceModRegistrar(); LOGGER.info("Loading GregTech"); INSTANCE = this; - ServerHandler.setup(); AntimatterDynamics.clientProvider(GTIRef.ID, diff --git a/common/src/main/java/muramasa/gregtech/proxy/ServerHandler.java b/common/src/main/java/muramasa/gregtech/proxy/ServerHandler.java deleted file mode 100644 index f36902abf..000000000 --- a/common/src/main/java/muramasa/gregtech/proxy/ServerHandler.java +++ /dev/null @@ -1,44 +0,0 @@ -package muramasa.gregtech.proxy; - -import muramasa.antimatter.AntimatterAPI; -import muramasa.antimatter.util.AntimatterPlatformUtils; -import muramasa.gregtech.GTIRef; -import muramasa.gregtech.GregTech; - -import java.io.File; -import java.io.FileOutputStream; -import java.io.IOException; -import java.io.InputStream; - -public class ServerHandler { - public static void setup(){ - if (AntimatterPlatformUtils.isForge() && AntimatterAPI.getSIDE().isServer() && AntimatterPlatformUtils.isProduction()){ - //copyGTRubberJarIfMissing(); - } - } - - private static void copyGTRubberJarIfMissing() { - File dir = new File(AntimatterPlatformUtils.getConfigDir().getParent().toFile(), "mods"); - File target = new File(dir, "gtrubber-forge-0.2.1-1.18.2.jar"); - - - //if(!target.exists()) - try { - dir.mkdirs(); - InputStream in = GregTech.class.getResourceAsStream("/META-INF/jars/gtrubber-forge-0.2.1-1.18.2.jar"); - if (in == null) return; - FileOutputStream out = new FileOutputStream(target); - - byte[] buf = new byte[16384]; - int len = 0; - while((len = in.read(buf)) > 0) - out.write(buf, 0, len); - - in.close(); - out.close(); - } catch (IOException e) { - e.printStackTrace(); - } - } - -}