Skip to content

Commit

Permalink
hitreg improvements (in theory)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra-Myers committed Aug 29, 2023
1 parent f00ba69 commit 30ca5c9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public ServerPlayerMixin(EntityType<? extends LivingEntity> entityType, Level le
@Inject(method = "tick", at = @At(value = "HEAD"))
public void addShieldCrouch(CallbackInfo ci) {
Entity camera = getCamera();
if (((PlayerExtensions) this.player).isAttackAvailable(-1.0F) && retainAttack) {
if (((PlayerExtensions) this.player).isAttackAvailable(-1.0F) && retainAttack && Combatify.unmoddedPlayers.contains(getUUID())) {
swing(InteractionHand.MAIN_HAND);
}
if (camera != null) {
Expand Down

0 comments on commit 30ca5c9

Please sign in to comment.