Posted September 8, 20178 yr I'm using this code As found from "Item" Class however returning a false value inside the item class returns a Null Point Exception. I'm not Quite sure why could anyone tell me what I'm doing wrong please? @Override public boolean isBookEnchantable(ItemStack stack, ItemStack book) { return false; }
September 8, 20178 yr Author Stacktrace: at net.minecraft.client.multiplayer.WorldClient.addWorldInfoToCrashReport(WorldClient.java:456) at net.minecraft.client.Minecraft.addGraphicsAndWorldToCrashReport(Minecraft.java:2780) at net.minecraft.client.Minecraft.run(Minecraft.java:426) at net.minecraft.client.main.Main.main(Main.java:118) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) at net.minecraft.launchwrapper.Launch.main(Launch.java:28) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) at GradleStart.main(GradleStart.java:26)
September 8, 20178 yr Author https://pastebin.com/avxDPF1F for the entire crash log related to the moment it crashed
September 8, 20178 yr Author 52 minutes ago, diesieben07 said: Why are you using 1.11? If you must use 1.11.x, use 1.11.2. But you should really be using 1.12.1. What you are experiencing here is a bug that was fixed in version 1.11.2-13.20.0.2210. the issue is not corrected in 1.11.2-13.20.0.0.2210 it still exists as of 1.11.2 - 13.20.1.2386 Which leads me to assume its my fault although I'm not sure why. Also my Mod is not easily transferable to 1.12 as many things need to be done in regards to Recipe and Item registration which I'm not trying to deal with right now.
September 8, 20178 yr Author https://pastebin.com/vVMZifWy I'm starting to think I need to null the parameters instead of returning false. because from the looks of it its the same error messages.
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.