diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 16:20:12 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-26 16:20:12 +0100 |
commit | 83c27e073dc728152ee320fda40988a17c2d9530 (patch) | |
tree | 4a77f0cdbfd6a6d5aca0e832ec4413bd0c82bdb3 /src/main/java/at/hannibal2/skyhanni/mixins | |
parent | de34b54fee489e4ac9e950a232825c162732c9b6 (diff) | |
download | skyhanni-83c27e073dc728152ee320fda40988a17c2d9530.tar.gz skyhanni-83c27e073dc728152ee320fda40988a17c2d9530.tar.bz2 skyhanni-83c27e073dc728152ee320fda40988a17c2d9530.zip |
Fixed problems with patcher hide entities and skytils hide cheap coins.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/mixins')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderManager.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderManager.java b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderManager.java index d85da40df..d9c530bfb 100644 --- a/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderManager.java +++ b/src/main/java/at/hannibal2/skyhanni/mixins/transformers/MixinRenderManager.java @@ -14,6 +14,8 @@ public class MixinRenderManager { @Inject(method = "shouldRender", at = @At("HEAD"), cancellable = true) private void shouldRender(Entity entity, ICamera camera, double camX, double camY, double camZ, CallbackInfoReturnable<Boolean> cir) { - cir.setReturnValue(!new CheckRenderEntityEvent<>(entity, camera, camX, camY, camZ).postAndCatch()); + if (new CheckRenderEntityEvent<>(entity, camera, camX, camY, camZ).postAndCatch()) { + cir.setReturnValue(false); + } } } |