Key avec gui Crash
-
Bonjour,
Je vient encore vers vous car la je comprend pas, sa fait 1 heures que je supprime recommence est toujours le meme crash.
public class ClientProxy extends CommonProxy { private static KeyBinding keyBindJoueur; Minecraft mc; public ClientProxy() { FMLCommonHandler.instance().bus().register(this); keyBindJoueur = new KeyBinding("guiultra.key", Keyboard.KEY_W, "key.categories.Joueur"); ClientRegistry.registerKeyBinding(keyBindJoueur); } @SubscribeEvent public void onEvent(KeyInputEvent event) { if(keyBindJoueur.isPressed()) { keyJoueurTyped(); //Ligne erreur } } private void keyJoueurTyped() { mc.displayGuiScreen(new GuiMainMenu()); //Ligne erreur } @Override public void registerRender() { RenderingRegistry.registerEntityRenderingHandler(EntityBateau.class, new RenderBateau()); } } ```at fr.darkvince.proxy.ClientProxy.keyJoueurTyped(ClientProxy.java:49)
at fr.darkvince.proxy.ClientProxy.onEvent(ClientProxy.java:43)
at cpw.mods.fml.common.eventhandler.ASMEventHandler_0_ClientProxy_onEvent_KeyInputEvent.invoke(.dynamic)
at cpw.mods.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:54)
at cpw.mods.fml.common.eventhandler.EventBus.post(EventBus.java:140)
at cpw.mods.fml.common.FMLCommonHandler.fireKeyInput(FMLCommonHandler.java:540) -
Salut,
Le jeu crash car mc est null … -
@‘robin4002’:
Salut,
Le jeu crash car mc est null …Merci beaucoup
Bonjour ! Vous semblez intéressé par cette conversation, mais vous n’avez pas encore de compte.
Marre de refaire défiler les mêmes messages ? Créez un compte pour retrouver votre position, recevoir des notifications des nouvelles réponses, sauvegarder vos favoris et voter pour les messages que vous appréciez.
Grâce à votre participation, ce message peut devenir encore meilleur 💗
S'inscrire Se connecter