Ver Fonte

Fixed gui loop

Jared há 7 anos atrás
pai
commit
0e1594b6d0

+ 1 - 2
src/main/java/us/getfluxed/controlsearch/events/ClientEventHandler.java

@@ -13,8 +13,7 @@ public class ClientEventHandler {
 
     @SubscribeEvent
     public void guiInit(GuiOpenEvent e) {
-        if (e.getGui() instanceof GuiControls) {
-//            GuiModList
+        if (e.getGui() instanceof GuiControls && !(e.getGui() instanceof GuiNewControls)) {
             e.setGui(new GuiNewControls(Minecraft.getMinecraft().currentScreen, Minecraft.getMinecraft().gameSettings));
         }
     }