From bdec1683c23f0eeed1fc13f844d1de304a8355fa Mon Sep 17 00:00:00 2001 From: Octol1ttle Date: Mon, 15 Jul 2024 13:20:43 +0500 Subject: [PATCH] fix: add missing SideOnly annotations Signed-off-by: Octol1ttle --- .../knockdowns/client/gui/KnockedNotificationGui.java | 3 +++ .../java/ru/octol1ttle/knockdowns/client/gui/ReviveGui.java | 3 +++ .../octol1ttle/knockdowns/client/util/KnockedPlayerData.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/src/main/java/ru/octol1ttle/knockdowns/client/gui/KnockedNotificationGui.java b/src/main/java/ru/octol1ttle/knockdowns/client/gui/KnockedNotificationGui.java index c8055fb..cfa468c 100644 --- a/src/main/java/ru/octol1ttle/knockdowns/client/gui/KnockedNotificationGui.java +++ b/src/main/java/ru/octol1ttle/knockdowns/client/gui/KnockedNotificationGui.java @@ -7,11 +7,14 @@ import net.minecraft.entity.Entity; import net.minecraft.util.ResourceLocation; import net.minecraft.util.math.MathHelper; import net.minecraft.util.math.Vec3d; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; import org.lwjgl.opengl.GL11; import ru.octol1ttle.knockdowns.Tags; import ru.octol1ttle.knockdowns.client.communication.KnockedNotificationManager; import ru.octol1ttle.knockdowns.client.util.KnockedPlayerData; +@SideOnly(Side.CLIENT) public class KnockedNotificationGui extends KnockdownsBaseGui { private static final Minecraft client = Minecraft.getMinecraft(); private static final int KNOCKED_ICON_SIZE = 18; diff --git a/src/main/java/ru/octol1ttle/knockdowns/client/gui/ReviveGui.java b/src/main/java/ru/octol1ttle/knockdowns/client/gui/ReviveGui.java index ad78dbb..02816fd 100644 --- a/src/main/java/ru/octol1ttle/knockdowns/client/gui/ReviveGui.java +++ b/src/main/java/ru/octol1ttle/knockdowns/client/gui/ReviveGui.java @@ -5,9 +5,12 @@ import net.minecraft.client.gui.FontRenderer; import net.minecraft.client.gui.ScaledResolution; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.text.TextFormatting; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; import ru.octol1ttle.knockdowns.common.KnockdownsUtils; import ru.octol1ttle.knockdowns.common.data.IKnockdownsPlayerData; +@SideOnly(Side.CLIENT) public class ReviveGui extends KnockdownsBaseGui { private static final Minecraft client = Minecraft.getMinecraft(); diff --git a/src/main/java/ru/octol1ttle/knockdowns/client/util/KnockedPlayerData.java b/src/main/java/ru/octol1ttle/knockdowns/client/util/KnockedPlayerData.java index 8cebdde..34884c9 100644 --- a/src/main/java/ru/octol1ttle/knockdowns/client/util/KnockedPlayerData.java +++ b/src/main/java/ru/octol1ttle/knockdowns/client/util/KnockedPlayerData.java @@ -1,7 +1,10 @@ package ru.octol1ttle.knockdowns.client.util; import net.minecraft.util.math.Vec3d; +import net.minecraftforge.fml.relauncher.Side; +import net.minecraftforge.fml.relauncher.SideOnly; +@SideOnly(Side.CLIENT) public class KnockedPlayerData { private final int playerId; private final Vec3d position;