Added OnlyIn client annotation for GUI Event Handler (Closes #1561)
This commit is contained in:
parent
e1ea75fbaa
commit
7e0f2b8894
1 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,8 @@ import net.minecraft.client.gui.screen.CreateWorldScreen;
|
|||
import net.minecraft.client.gui.screen.Screen;
|
||||
import net.minecraft.world.WorldType;
|
||||
import net.minecraft.world.biome.Biome;
|
||||
import net.minecraftforge.api.distmarker.Dist;
|
||||
import net.minecraftforge.api.distmarker.OnlyIn;
|
||||
import net.minecraftforge.client.event.GuiScreenEvent;
|
||||
import net.minecraftforge.event.RegistryEvent;
|
||||
import net.minecraftforge.eventbus.api.SubscribeEvent;
|
||||
|
@ -23,6 +25,7 @@ import net.minecraftforge.fml.common.Mod;
|
|||
public class GuiEventHandler
|
||||
{
|
||||
@SubscribeEvent
|
||||
@OnlyIn(Dist.CLIENT)
|
||||
public static void onPreInitCreateWorld(GuiScreenEvent.InitGuiEvent.Pre event)
|
||||
{
|
||||
Screen screenGui = event.getGui();
|
||||
|
|
Loading…
Reference in a new issue