reflection tweak?

This commit is contained in:
MachineMuse 2013-04-25 11:45:54 -06:00
parent ee562d953b
commit 38897473eb

View file

@ -81,13 +81,13 @@ public class ThaumRenderEventHandler {
o_eventHandler = c_eventHandler.newInstance();
}
if (m_drawTagOnJar == null) {
m_drawTagOnJar = c_eventHandler.getMethod("drawTagOnJar", Double.class, Double.class, Double.class, ObjectTags.class, Integer.class, ForgeDirection.class, Float.class);
m_drawTagOnJar = c_eventHandler.getDeclaredMethod("drawTagOnJar", Double.class, Double.class, Double.class, ObjectTags.class, Integer.class, ForgeDirection.class, Float.class);
}
if (m_renderAuraNodes == null) {
m_renderAuraNodes = c_eventHandler.getMethod("renderAuraNodes", RenderWorldLastEvent.class, Float.class, EntityPlayer.class, Long.class);
m_renderAuraNodes = c_eventHandler.getDeclaredMethod("renderAuraNodes", RenderWorldLastEvent.class, Float.class, EntityPlayer.class, Long.class);
}
if (m_renderGogglesHUD_eventHandler == null) {
m_renderGogglesHUD_eventHandler = c_eventHandler.getMethod("renderGogglesHUD", RenderWorldLastEvent.class, Float.class, EntityPlayer.class, Long.class);
m_renderGogglesHUD_eventHandler = c_eventHandler.getDeclaredMethod("renderGogglesHUD", RenderWorldLastEvent.class, Float.class, EntityPlayer.class, Long.class);
}
if (f_tagscale == null) {
f_tagscale = c_eventHandler.getField("tagscale");
@ -96,7 +96,7 @@ public class ThaumRenderEventHandler {
c_guiTicker = Class.forName("thaumcraft.client.lib.GUITicker");
}
if (m_renderGogglesHUD_guiTicker == null) {
m_renderGogglesHUD_guiTicker = c_guiTicker.getMethod("renderGogglesHUD", Float.class, EntityPlayer.class, Long.class);
m_renderGogglesHUD_guiTicker = c_guiTicker.getDeclaredMethod("renderGogglesHUD", Float.class, EntityPlayer.class, Long.class);
o_guiTicker = c_guiTicker.newInstance();
}
} catch (Exception e) {