From 73c976fd2049df23a7f88d16715564b8295b78fb Mon Sep 17 00:00:00 2001 From: MicrocontrollersDev <66657148+MicrocontrollersDev@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:12:41 -0600 Subject: [PATCH] fix wrong ordinal and overwrite method visibility --- ...TileEntityRendererDispatcherMixin_RemoveInvalidEntities.java | 2 +- .../performance/WorldMixin_FixEarlyLightInitialization.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/club/sk1er/patcher/mixins/performance/TileEntityRendererDispatcherMixin_RemoveInvalidEntities.java b/src/main/java/club/sk1er/patcher/mixins/performance/TileEntityRendererDispatcherMixin_RemoveInvalidEntities.java index 011bf85b..9bfedfd0 100644 --- a/src/main/java/club/sk1er/patcher/mixins/performance/TileEntityRendererDispatcherMixin_RemoveInvalidEntities.java +++ b/src/main/java/club/sk1er/patcher/mixins/performance/TileEntityRendererDispatcherMixin_RemoveInvalidEntities.java @@ -19,7 +19,7 @@ public abstract class TileEntityRendererDispatcherMixin_RemoveInvalidEntities { * @reason Remove invalid tile entities from being rendered */ @Overwrite - private TileEntitySpecialRenderer getSpecialRenderer(TileEntity tileEntityIn) { + public TileEntitySpecialRenderer getSpecialRenderer(TileEntity tileEntityIn) { return tileEntityIn != null && !tileEntityIn.isInvalid() ? this.getSpecialRendererByClass(tileEntityIn.getClass()) : null; } //#endif diff --git a/src/main/java/club/sk1er/patcher/mixins/performance/WorldMixin_FixEarlyLightInitialization.java b/src/main/java/club/sk1er/patcher/mixins/performance/WorldMixin_FixEarlyLightInitialization.java index ab572afc..8a667570 100644 --- a/src/main/java/club/sk1er/patcher/mixins/performance/WorldMixin_FixEarlyLightInitialization.java +++ b/src/main/java/club/sk1er/patcher/mixins/performance/WorldMixin_FixEarlyLightInitialization.java @@ -25,7 +25,7 @@ public abstract class WorldMixin_FixEarlyLightInitialization { return 16; } - @ModifyConstant(method = "checkLightFor", constant = {@Constant(intValue = 17, ordinal = 0), @Constant(intValue = 17, ordinal = 2)}) + @ModifyConstant(method = "checkLightFor", constant = {@Constant(intValue = 17, ordinal = 1), @Constant(intValue = 17, ordinal = 2)}) private int patcher$modifyRange2(int constant) { return this.patcher$range; }