Topic category: Troubleshooting, bugs, and solutions
Hello , i have create a key bind , for my server launcher.
Build successful
I compile and I go to my server, I executed the key bind but my game crash could you help me
java.lang.NullPointerException: Unexpected error
at mod.mcreator.mcreator_hotel$KeyHandlerClass.onKeyInput(mcreator_hotel.java:77)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_10_KeyHandlerClass_onKeyInput_KeyInputEvent.invoke(.dynamic)
at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90)
at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:185)
at net.minecraftforge.fml.common.FMLCommonHandler.fireKeyInput(FMLCommonHandler.java:555)
at net.minecraft.client.Minecraft.func_184118_az(Minecraft.java:1958)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1749)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1055)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
at net.minecraft.client.main.Main.main(SourceFile:124)
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:483)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
Are you trying to make the key spawn a structure? What is the key binded to?
Please Dear, User provide this information so i may help you.
So you had a compile error when you wanted to create a key bind .
I create a keybind for the command /hotel of my server.