Jump to content

[1.15.2] Updating handleInput()


xSlart01x

Recommended Posts

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 by xSlart01x
Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.