Small oversight for noclip (#255)

This commit is contained in:
yorik100
2023-06-17 12:20:42 +02:00
committed by GitHub
parent 275fa1d16f
commit b5a8fb0493

View File

@@ -19,6 +19,6 @@ public class PlayerEntityMixin {
} }
@Redirect(method = {"tick", "updatePose"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;isSpectator()Z")) @Redirect(method = {"tick", "updatePose"}, at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;isSpectator()Z"))
private boolean FullNoClip(PlayerEntity player) { private boolean FullNoClip(PlayerEntity player) {
return Modules.get().isActive(FullNoClip.class); return player.isSpectator() || Modules.get().isActive(FullNoClip.class);
} }
} }