From 109756d81ad9e72a5bb2b48ce79e338a313dbd04 Mon Sep 17 00:00:00 2001 From: Patbox Date: Sat, 1 Jun 2024 19:45:03 +0200 Subject: [PATCH] Fix enchantments --- .../mixins/item/component/ItemEnchantmentComponentMixin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }