9
0
mirror of https://github.com/Samsuik/Sakura.git synced 2025-12-29 19:59:08 +00:00

fix sending the sword blocking animation when block-with-swords is disabled

This commit is contained in:
Samsuik
2025-08-14 21:17:43 +01:00
parent bf7e63debc
commit f8a30242f3
3 changed files with 28 additions and 1 deletions

View File

@@ -30,7 +30,7 @@ public final class BlockableSwordItem extends Item {
@Override
public void modifyComponentsSentToClient(PatchedDataComponentMap components) {
if (hasCustomAnimationOrDisabled(components)) {
if (!hasCustomAnimationOrDisabled(components)) {
// When updating to 1.22 change CONSUMABLE to BLOCK_ATTACKS
components.set(DataComponents.CONSUMABLE, BLOCKING_ANIMATION);
}