Posted April 18, 201312 yr @SideOnly(CLIENT) public static boolean isGUIOpen(Class<? extends GuiScreen> gui) { return FMLClientHandler.instance().getClient().currentScreen != null && FMLClientHandler.instance().getClient().currentScreen.equals(gui); } This code copmpares an instance of class GuiScreen to class extending GuiScreen, which will always be false. Here is how the code should be: @SideOnly(CLIENT) public static boolean isGUIOpen(Class<? extends GuiScreen> gui) { return FMLClientHandler.instance().getClient().currentScreen != null && FMLClientHandler.instance().getClient().currentScreen.getClass().equals(gui); }
April 18, 201312 yr Author @SideOnly(CLIENT) public static boolean isGUIOpen(Class<? extends GuiScreen> gui) { return FMLClientHandler.instance().getClient().currentScreen != null && FMLClientHandler.instance().getClient().currentScreen.equals(gui); } This code copmpares an instance of class GuiScreen to class extending GuiScreen, which will always be false. Here is how the code should be: @SideOnly(CLIENT) public static boolean isGUIOpen(Class<? extends GuiScreen> gui) { return FMLClientHandler.instance().getClient().currentScreen != null && FMLClientHandler.instance().getClient().currentScreen.getClass().equals(gui); }
April 20, 201312 yr File an issue at the bt if you havent already. https://github.com/MinecraftForge/MinecraftForge/issues Read the EAQ before posting! OR ELSE! This isn't building better software, its trying to grab a place in the commit list of a highly visible github project. www.forgeessentials.com Don't PM me, I don't check this account unless I have to.
April 20, 201312 yr File an issue at the bt if you havent already. https://github.com/MinecraftForge/MinecraftForge/issues Read the EAQ before posting! OR ELSE! This isn't building better software, its trying to grab a place in the commit list of a highly visible github project. www.forgeessentials.com Don't PM me, I don't check this account unless I have to.
April 20, 201312 yr Actually file it to FML since it's FML's end of things. Same goes for your other post about the Registry. Small oversights can be fixed easily if reported properly. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
April 20, 201312 yr Actually file it to FML since it's FML's end of things. Same goes for your other post about the Registry. Small oversights can be fixed easily if reported properly. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
April 20, 201312 yr Author Actually file it to FML since it's FML's end of things. Same goes for your other post about the Registry. Small oversights can be fixed easily if reported properly. Can you give me an URL, where I can find some kind of Bugzilla for FML? I already was given the GitHub address for Forge, so I'm sorted on that front. Thank you in advance!
April 20, 201312 yr Author Actually file it to FML since it's FML's end of things. Same goes for your other post about the Registry. Small oversights can be fixed easily if reported properly. Can you give me an URL, where I can find some kind of Bugzilla for FML? I already was given the GitHub address for Forge, so I'm sorted on that front. Thank you in advance!
April 20, 201312 yr https://github.com/MinecraftForge/ Has links to everything. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
April 20, 201312 yr https://github.com/MinecraftForge/ Has links to everything. I do Forge for free, however the servers to run it arn't free, so anything is appreciated. Consider supporting the team on Patreon
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.