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; }