Posted March 2, 20205 yr Hi, it's me again. I'm now locked on this istruction: Minecraft.getInstance().currentScreen.handleInput() Any tips? Thanks.
March 3, 20205 yr Author Fun fuct, i neither remember what it should do, cause i did my mod so much time ago... :') Anyway, this is the full method: @SubscribeEvent public void onRenderTick(final TickEvent.RenderTickEvent event) { if (this.mc.currentScreen != null) { if (this.mc.currentScreen instanceof GuiScreenKeystrokes) { try { Minecraft.getInstance().currentScreen.handleInput(); // @FIXME } catch (Exception e) { e.printStackTrace(); } } } else if (this.mc.isGameFocused() && !this.mc.gameSettings.showDebugInfo) { this.renderKeystrokes(); } } Edited March 3, 20205 yr by xSlart01x
March 3, 20205 yr Author 1 hour ago, diesieben07 said: You should not need this at all. so.. i should completely remove this check? if (this.mc.currentScreen instanceof GuiScreenKeystrokes) Edited March 3, 20205 yr by xSlart01x
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.