Move RenderManager interaction to Post Init ( fixes some kind of weird conflict with a key bind mod )
This commit is contained in:
@@ -139,7 +139,11 @@ public class ClientHelper extends ServerHelper
|
|||||||
public void init()
|
public void init()
|
||||||
{
|
{
|
||||||
MinecraftForge.EVENT_BUS.register( this );
|
MinecraftForge.EVENT_BUS.register( this );
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postinit()
|
||||||
|
{
|
||||||
RenderingRegistry.registerBlockHandler( WorldRender.instance );
|
RenderingRegistry.registerBlockHandler( WorldRender.instance );
|
||||||
RenderManager.instance.entityRenderMap.put( EntityTinyTNTPrimed.class, new RenderTinyTNTPrimed() );
|
RenderManager.instance.entityRenderMap.put( EntityTinyTNTPrimed.class, new RenderTinyTNTPrimed() );
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -158,6 +158,7 @@ public class AppEng
|
|||||||
Registration.instance.PostInit( event );
|
Registration.instance.PostInit( event );
|
||||||
IntegrationRegistry.instance.postinit();
|
IntegrationRegistry.instance.postinit();
|
||||||
|
|
||||||
|
CommonHelper.proxy.postinit();
|
||||||
AEConfig.instance.save();
|
AEConfig.instance.save();
|
||||||
|
|
||||||
NetworkRegistry.INSTANCE.registerGuiHandler( this, GuiBridge.GUI_Handler );
|
NetworkRegistry.INSTANCE.registerGuiHandler( this, GuiBridge.GUI_Handler );
|
||||||
|
|||||||
@@ -37,4 +37,6 @@ public abstract class CommonHelper
|
|||||||
|
|
||||||
public abstract void doRenderItem(ItemStack sis, TileEntity tile);
|
public abstract void doRenderItem(ItemStack sis, TileEntity tile);
|
||||||
|
|
||||||
|
public abstract void postinit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -72,6 +72,12 @@ public class ServerHelper extends CommonHelper
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void postinit()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public World getWorld()
|
public World getWorld()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user