Skip to content

Commit

Permalink
fix: valkyrie lance could be enchanted with sweeping edge
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Nov 15, 2024
1 parent fdc7d65 commit 403a124
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Fixes
- Fix glove modifiers being hardcoded to a specific slot.
- Fix cape textures not being correctly separated per-player.
- Fix Moa Skins not registering on the client.
- Fix incorrect enchantment selection for Valkyrie Lance.

# The Aether - NeoForge - 1.21.1-1.5.1-beta.2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public ValkyrieLanceItem() {

@Override
public boolean isPrimaryItemFor(ItemStack stack, Holder<Enchantment> enchantment) {
return super.isPrimaryItemFor(stack, enchantment) && enchantment.is(Enchantments.SWEEPING_EDGE);
return super.isPrimaryItemFor(stack, enchantment) && !enchantment.is(Enchantments.SWEEPING_EDGE);
}

@Override
Expand Down

0 comments on commit 403a124

Please sign in to comment.