Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2016
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. java.lang.NullPointerException: Initializing game
  2.  
  3.  
  4. public class RegisterItemRender {
  5.  
  6. public static void registerItems() {
  7. registerItem(JerrysMod.JerrySword);
  8.  
  9. and all other items...
  10. }
  11.  
  12. private static void registerItem(Item item) {
  13. //ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(Reference.MOD_ID + item.getUnlocalizedName(), "normal"));
  14. Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(Reference.MOD_ID + ":" + item.getUnlocalizedName(), "normal"));
  15.  
  16. }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement