From 0bb50a28406c8b608d8ce747e567999caf6f6d0d Mon Sep 17 00:00:00 2001 From: Adubbz Date: Fri, 10 Jul 2020 23:30:35 +1000 Subject: [PATCH] Fixed GuiEventHandler causing issues on servers --- .../java/biomesoplenty/client/handler/GuiEventHandler.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java b/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java index f488a8500..fa735e809 100644 --- a/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java +++ b/src/main/java/biomesoplenty/client/handler/GuiEventHandler.java @@ -27,13 +27,13 @@ import net.minecraftforge.fml.common.Mod; import java.util.Optional; import java.util.function.Function; -@OnlyIn(Dist.CLIENT) @Mod.EventBusSubscriber(bus = Mod.EventBusSubscriber.Bus.FORGE) public class GuiEventHandler { private static String levelId = null; private static ConfirmBackupScreen confirmScreen = null; + @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onGuiOpened(GuiOpenEvent event) { @@ -73,6 +73,7 @@ public class GuiEventHandler } } + @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onGuiPostInit(GuiScreenEvent.InitGuiEvent.Post event) { @@ -86,6 +87,7 @@ public class GuiEventHandler } } + @OnlyIn(Dist.CLIENT) @SubscribeEvent public static void onGuiDraw(GuiScreenEvent.DrawScreenEvent event) {