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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user