Skip to content

Commit

Permalink
fix crashes due to non-renamed accessors
Browse files Browse the repository at this point in the history
fixes #65
  • Loading branch information
SrRapero720 committed Jun 17, 2024
1 parent ea9e497 commit db760a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
@Mixin(LightTexture.class)
public interface LightTextureAccessor {
@Accessor("blockLightRedFlicker")
float getFlicker();
float embPlus$getFlicker();

@Accessor("updateLightTexture")
boolean isDirty();
boolean embPlus$isDirty();
}

0 comments on commit db760a5

Please sign in to comment.