From b5a8fb0493099d6dd566d48348666ee85ed48537 Mon Sep 17 00:00:00 2001 From: yorik100 Date: Sat, 17 Jun 2023 12:20:42 +0200 Subject: [PATCH] Small oversight for noclip (#255) --- src/main/java/anticope/rejects/mixin/PlayerEntityMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/anticope/rejects/mixin/PlayerEntityMixin.java b/src/main/java/anticope/rejects/mixin/PlayerEntityMixin.java index 90fd76b0..d99cbc59 100644 --- a/src/main/java/anticope/rejects/mixin/PlayerEntityMixin.java +++ b/src/main/java/anticope/rejects/mixin/PlayerEntityMixin.java @@ -19,6 +19,6 @@ private void onGetOffGroundSpeed(CallbackInfoReturnable cir) { } @Redirect(method = {"tick", "updatePose"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;isSpectator()Z")) private boolean FullNoClip(PlayerEntity player) { - return Modules.get().isActive(FullNoClip.class); + return player.isSpectator() || Modules.get().isActive(FullNoClip.class); } }