diff --git a/src/main/java/meteordevelopment/meteorclient/mixin/EntityMixin.java b/src/main/java/meteordevelopment/meteorclient/mixin/EntityMixin.java index e6bb1d3585..14a2291fea 100644 --- a/src/main/java/meteordevelopment/meteorclient/mixin/EntityMixin.java +++ b/src/main/java/meteordevelopment/meteorclient/mixin/EntityMixin.java @@ -123,7 +123,8 @@ private Block getVelocityMultiplierGetBlockProxy(BlockState blockState) { @Inject(method = "isInvisibleTo(Lnet/minecraft/entity/player/PlayerEntity;)Z", at = @At("HEAD"), cancellable = true) private void isInvisibleToCanceller(PlayerEntity player, CallbackInfoReturnable info) { if (!Utils.canUpdate()) return; - if (Modules.get().get(NoRender.class).noInvisibility() || !Modules.get().get(ESP.class).shouldSkip((Entity) (Object) this)) info.setReturnValue(false); + ESP esp = Modules.get().get(ESP.class); + if (Modules.get().get(NoRender.class).noInvisibility() || esp.isActive() && !esp.shouldSkip((Entity) (Object) this)) info.setReturnValue(false); } @Inject(method = "isGlowing", at = @At("HEAD"), cancellable = true)