Verclene / LittleMaidMobNX

Little & cute maids for Minecraft
http://el-blacklab.net/
22 stars 7 forks source link

Server may crash if give a non original weapon to a maid #40

Closed joe987654321 closed 8 years ago

joe987654321 commented 8 years ago

Hi, nice to meet you.

Recently our server crashed. Seems like it was caused by giving a non original weapon to a maid. There is some part of the report:

java.lang.NoClassDefFoundError: net/minecraft/client/renderer/texture/IIconRegister at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) at java.lang.Class.privateGetMethodRecursive(Class.java:3048) at java.lang.Class.getMethod0(Class.java:3018) at java.lang.Class.getMethod(Class.java:1784) at littleMaidMobX.LMM_EntityLittleMaid.getWeaponStatus(LMM_EntityLittleMaid.java:2253) at littleMaidMobX.LMM_EntityMode_Archer.onUpdate(LMM_EntityMode_Archer.java:146) at littleMaidMobX.LMM_EntityLittleMaid.func_70071h(LMM_EntityLittleMaid.java:1944) ....

The program cannot find IIconRegister and then crash.

From some information on the Internet, I guess it can be fixed if "@SideOnly(Side.CLIENT)" is put on the method "getWeaponStatus()". Just like what you do on "manualOnDeath()". (But it is just a guess, I'm not familiar with minecraft mod creation.)

It may help others who encounter the same problem.

BTW, our server has minecraft version 1.7.10 and littleMaidMobX-1.7.x_0.1.1.jar. I notice you are working on minecarft 1.8 now, so I'll just delete the maid from our server.

Thank you for creating such a "萌" mod, If my guess is wrong, sorry for wasting your time.

Joe

Verclene commented 8 years ago

I made LittleMaidMobNX, not littleMaidMobX. This is the repository of NX. Currently I do NOT contribute to developing LMMX. Go to the LMMX topic and ask to EMB4, who's the author of LMMX, NOT ME!