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