Semi-ready proxy

This commit is contained in:
sferatime 2020-08-05 00:05:09 +03:00
parent f64edc5a73
commit cc893339a9
3 changed files with 7 additions and 6 deletions

View file

@ -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;

View file

@ -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);
}
}
}

View file

@ -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);
}
}
}