From db760a56d968dd8ea55857ecf9c075025d5c2c6e Mon Sep 17 00:00:00 2001 From: J-RAP Date: Sun, 16 Jun 2024 20:36:56 -0600 Subject: [PATCH] fix crashes due to non-renamed accessors fixes #65 --- .../embeddiumplus/mixins/impl/darkness/GameRendererMixin.java | 4 ++-- .../mixins/impl/darkness/accessors/LightTextureAccessor.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/GameRendererMixin.java b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/GameRendererMixin.java index f0c9af6..8367860 100644 --- a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/GameRendererMixin.java +++ b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/GameRendererMixin.java @@ -22,9 +22,9 @@ public abstract class GameRendererMixin { private void inject$renderLevel(float tickDelta, long nanos, PoseStack matrixStack, CallbackInfo ci) { final var lightTexAccessor = (LightTextureAccessor) lightTexture; - if (lightTexAccessor.isDirty()) { + if (lightTexAccessor.embPlus$isDirty()) { minecraft.getProfiler().push("lightTex"); - DarknessPlus.updateLuminance(tickDelta, minecraft, (GameRenderer) (Object) this, lightTexAccessor.getFlicker()); + DarknessPlus.updateLuminance(tickDelta, minecraft, (GameRenderer) (Object) this, lightTexAccessor.embPlus$getFlicker()); minecraft.getProfiler().pop(); } } diff --git a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/accessors/LightTextureAccessor.java b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/accessors/LightTextureAccessor.java index 13b0983..f916ffc 100644 --- a/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/accessors/LightTextureAccessor.java +++ b/src/main/java/me/srrapero720/embeddiumplus/mixins/impl/darkness/accessors/LightTextureAccessor.java @@ -7,8 +7,8 @@ @Mixin(LightTexture.class) public interface LightTextureAccessor { @Accessor("blockLightRedFlicker") - float getFlicker(); + float embPlus$getFlicker(); @Accessor("updateLightTexture") - boolean isDirty(); + boolean embPlus$isDirty(); }