File tree Expand file tree Collapse file tree 3 files changed +2
-1
lines changed
src/main/java/com/cleanroommc/modularui Expand file tree Collapse file tree 3 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ void preInit(FMLPreInitializationEvent event) {
3131 super .preInit (event );
3232
3333 MinecraftForge .EVENT_BUS .register (ClientEventHandler .class );
34- MinecraftForge .EVENT_BUS .register (GuiManager .class );
3534 MinecraftForge .EVENT_BUS .register (KeyBindHandler .class );
3635
3736 if (ModularUIConfig .enabledTestGuis ) {
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ public class CommonProxy {
3232
3333 void preInit (FMLPreInitializationEvent event ) {
3434 MinecraftForge .EVENT_BUS .register (CommonProxy .class );
35+ MinecraftForge .EVENT_BUS .register (GuiManager .class );
3536
3637 if (ModularUIConfig .enabledTestGuis ) {
3738 MinecraftForge .EVENT_BUS .register (TestBlock .class );
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ public static void onTick(TickEvent.ServerTickEvent event) {
111111 }
112112 }
113113
114+ @ SideOnly (Side .CLIENT )
114115 @ SubscribeEvent
115116 public static void onGuiOpen (GuiOpenEvent event ) {
116117 if (lastMui != null && event .getGui () == null ) {
You can’t perform that action at this time.
0 commit comments