Jump to content

[1.6.4] Using CommonProxy armor rendering causes armor not to display.


Recommended Posts

I am trying to get armor to work for my mod so it can work on servers, because of the rendering method I'm using at the moment is causing it to be a Client Only mod for the moment.


The method I am using now:



What I want to use:



When I want to use this method, armor doesn't render and my console gets flooded with this:

2014-03-10 15:21:07 [iNFO] [sTDERR] java.lang.ArrayIndexOutOfBoundsException: 5
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderBiped.getArmorResource(RenderBiped.java:92)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderPlayer.setArmorModel(RenderPlayer.java:72)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderPlayer.shouldRenderPass(RenderPlayer.java:514)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RendererLivingEntity.doRenderLiving(RendererLivingEntity.java:164)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderPlayer.func_130009_a(RenderPlayer.java:166)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderPlayer.doRender(RenderPlayer.java:556)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.entity.RenderManager.renderEntityWithPosYaw(RenderManager.java:312)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.gui.inventory.GuiInventory.func_110423_a(GuiInventory.java:121)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.gui.inventory.GuiContainerCreative.drawGuiContainerBackgroundLayer(GuiContainerCreative.java:849)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.gui.inventory.GuiContainer.drawScreen(GuiContainer.java:128)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.InventoryEffectRenderer.drawScreen(InventoryEffectRenderer.java:43)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.gui.inventory.GuiContainerCreative.drawScreen(GuiContainerCreative.java:683)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1036)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:946)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.Minecraft.run(Minecraft.java:838)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.client.main.Main.main(Main.java:93)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at java.lang.reflect.Method.invoke(Unknown Source)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.launch(Launch.java:131)
2014-03-10 15:21:07 [iNFO] [sTDERR] 	at net.minecraft.launchwrapper.Launch.main(Launch.java:27)


Can someone please tell me what I'm doing wrong?


Note: I am not new to modding, it's just I'm not good with server side type modding yet.


My class files: (The main base class, CommonProxy and ClientProxy): http://pastebin.com/hUJavejE

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

By using this site, you agree to our Terms of Use.