From cc893339a9fd76fc0611d23aa9a0d1de6abe603c Mon Sep 17 00:00:00 2001 From: sferatime Date: Wed, 5 Aug 2020 00:05:09 +0300 Subject: [PATCH] Semi-ready proxy --- src/main/java/gregtechmod/common/GT_Client.java | 6 +++--- src/main/java/gregtechmod/common/GT_SoundAdder.java | 5 +++-- src/main/java/gregtechmod/common/render/GT_Renderer.java | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/main/java/gregtechmod/common/GT_Client.java b/src/main/java/gregtechmod/common/GT_Client.java index 9d1040f..1547905 100644 --- a/src/main/java/gregtechmod/common/GT_Client.java +++ b/src/main/java/gregtechmod/common/GT_Client.java @@ -8,9 +8,9 @@ import net.minecraft.world.World; import cpw.mods.fml.client.registry.RenderingRegistry; public class GT_Client extends GT_Proxy { - public static GT_TickHandler mClientTickHandler = new GT_TickHandler(false); - public static GT_SoundAdder mSoundAdder = new GT_SoundAdder(); - public static GT_Renderer mRenderer = new GT_Renderer(); +// public static GT_TickHandler mClientTickHandler = new GT_TickHandler(false); +// public static GT_SoundAdder mSoundAdder = new GT_SoundAdder(); +// public static GT_Renderer mRenderer = new GT_Renderer(); public boolean isServerSide() { return true; diff --git a/src/main/java/gregtechmod/common/GT_SoundAdder.java b/src/main/java/gregtechmod/common/GT_SoundAdder.java index 8655585..a36f92b 100644 --- a/src/main/java/gregtechmod/common/GT_SoundAdder.java +++ b/src/main/java/gregtechmod/common/GT_SoundAdder.java @@ -2,12 +2,13 @@ package gregtechmod.common; import gregtechmod.api.GregTech_API; import gregtechmod.api.util.GT_Log; +import net.minecraft.client.audio.SoundPoolEntry; public class GT_SoundAdder { public GT_SoundAdder() { net.minecraftforge.common.MinecraftForge.EVENT_BUS.register(this); } - + @SuppressWarnings("deprecation") @net.minecraftforge.event.ForgeSubscribe public void onSound(net.minecraftforge.client.event.sound.SoundLoadEvent event) { try { @@ -48,7 +49,7 @@ public class GT_SoundAdder { event.manager.soundPoolSounds.addSound(GregTech_API.IC2_MOD_ID + ":" + "tools/Treetap" + ".ogg"); event.manager.soundPoolSounds.addSound(GregTech_API.IC2_MOD_ID + ":" + "tools/Wrench" + ".ogg"); } catch(Throwable e) { - e.printStackTrace(GT_Log.err); + GT_Log.log.catching(e); } } } \ No newline at end of file diff --git a/src/main/java/gregtechmod/common/render/GT_Renderer.java b/src/main/java/gregtechmod/common/render/GT_Renderer.java index 3ca5fda..d1f814e 100644 --- a/src/main/java/gregtechmod/common/render/GT_Renderer.java +++ b/src/main/java/gregtechmod/common/render/GT_Renderer.java @@ -84,7 +84,7 @@ public class GT_Renderer extends RenderPlayer { GL11.glPopMatrix(); } } catch (Throwable e) { - if (GregTech_API.DEBUG_MODE) e.printStackTrace(GT_Log.err); + if (GregTech_API.DEBUG_MODE) GT_Log.log.catching(e); } } } \ No newline at end of file