Skip to content

Commit

Permalink
Fix enchantments
Browse files Browse the repository at this point in the history
  • Loading branch information
Patbox committed Jun 1, 2024
1 parent d570558 commit 109756d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class ItemEnchantmentComponentMixin implements TransformingDataC
var map = Util.tryGetPolyMap(player);

var b = new ItemEnchantmentsComponent.Builder((ItemEnchantmentsComponent) (Object) this);
b.remove(map::canReceiveEnchantment);
b.remove((x) -> !map.canReceiveEnchantment(x));
return b.build();
}

Expand Down

0 comments on commit 109756d

Please sign in to comment.