Skip to content

Commit

Permalink
Small oversight for noclip (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
yorik100 authored Jun 17, 2023
1 parent 275fa1d commit b5a8fb0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ private void onGetOffGroundSpeed(CallbackInfoReturnable<Float> 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);
}
}

0 comments on commit b5a8fb0

Please sign in to comment.