From 8dd209899f74b4ff9d2972c2ade261cdf210c73f Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Mon, 6 May 2024 20:20:59 +0500 Subject: [PATCH] fix: Forge nonsense --- .../knockdowns/forge/KnockdownsClientForge.java | 9 +++++++++ .../ru/octol1ttle/knockdowns/forge/KnockdownsForge.java | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsClientForge.java diff --git a/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsClientForge.java b/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsClientForge.java new file mode 100644 index 0000000..534a7b2 --- /dev/null +++ b/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsClientForge.java @@ -0,0 +1,9 @@ +package ru.octol1ttle.knockdowns.forge; + +import net.minecraftforge.client.event.RenderGuiEvent; + +public class KnockdownsClientForge { + public static void onHudRender(RenderGuiEvent.Pre event) { + ru.octol1ttle.knockdowns.common.events.KnockdownsClientEvents.onHudRender(event.getGuiGraphics()); + } +} diff --git a/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsForge.java b/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsForge.java index 179dcc8..291183e 100644 --- a/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsForge.java +++ b/forge/src/main/java/ru/octol1ttle/knockdowns/forge/KnockdownsForge.java @@ -10,7 +10,6 @@ import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import ru.octol1ttle.knockdowns.common.KnockdownsClient; import ru.octol1ttle.knockdowns.common.KnockdownsCommon; -import ru.octol1ttle.knockdowns.common.events.KnockdownsClientEvents; @SuppressWarnings("unused") @Mod(KnockdownsCommon.MOD_ID) @@ -31,6 +30,6 @@ public class KnockdownsForge { @SubscribeEvent public void onHudRender(RenderGuiEvent.Pre event) { - KnockdownsClientEvents.onHudRender(event.getGuiGraphics()); + KnockdownsClientForge.onHudRender(event); } }