From c1a3a90b01b53bd9beff3a3fe27207d8e60bde46 Mon Sep 17 00:00:00 2001 From: J-RAP Date: Thu, 2 May 2024 22:55:04 -0600 Subject: [PATCH] no warns --- .../mixins/impl/entitydistance/EntityTypeMixin.java | 1 + .../embeddiumplus/mixins/impl/skyblueband/FogRendererMixin.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/entitydistance/EntityTypeMixin.java b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/entitydistance/EntityTypeMixin.java index 0f80b45..1960c5b 100644 --- a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/entitydistance/EntityTypeMixin.java +++ b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/entitydistance/EntityTypeMixin.java @@ -16,6 +16,7 @@ import static me.srrapero720.embeddiumplus.EmbeddiumPlus.LOGGER; @Mixin(EntityType.class) +@SuppressWarnings("deprecation") public abstract class EntityTypeMixin implements IWhitelistCheck { @Unique private static final Marker e$IT = MarkerManager.getMarker("EntityType"); @Unique private boolean embPlus$checked = false; diff --git a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/skyblueband/FogRendererMixin.java b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/skyblueband/FogRendererMixin.java index 67064b9..ca480b3 100644 --- a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/skyblueband/FogRendererMixin.java +++ b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/skyblueband/FogRendererMixin.java @@ -28,7 +28,7 @@ public class FogRendererMixin { return original.call(vec, fetcher); } - @WrapOperation(method = "setupColor", at = @At(value = "INVOKE", target = "Lorg/joml/Vector3f;dot(Lorg/joml/Vector3fc;)F")) + @WrapOperation(method = "setupColor", at = @At(value = "INVOKE", target = "Lorg/joml/Vector3f;dot(Lorg/joml/Vector3fc;)F", remap = false)) private static float redirect$dot(Vector3f instance, Vector3fc v, Operation original) { if (!EmbyConfig.blueBandCache) return 0; return original.call(instance, v);