diff --git a/src/main/java/io/github/theepicblock/polymc/mixins/item/component/ItemEnchantmentComponentMixin.java b/src/main/java/io/github/theepicblock/polymc/mixins/item/component/ItemEnchantmentComponentMixin.java index c42093a8..c264fc83 100644 --- a/src/main/java/io/github/theepicblock/polymc/mixins/item/component/ItemEnchantmentComponentMixin.java +++ b/src/main/java/io/github/theepicblock/polymc/mixins/item/component/ItemEnchantmentComponentMixin.java @@ -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(); }