diff --git a/paper-server/patches/sources/net/minecraft/world/inventory/EnchantmentMenu.java.patch b/paper-server/patches/sources/net/minecraft/world/inventory/EnchantmentMenu.java.patch index cb09f4b192..531e6792cc 100644 --- a/paper-server/patches/sources/net/minecraft/world/inventory/EnchantmentMenu.java.patch +++ b/paper-server/patches/sources/net/minecraft/world/inventory/EnchantmentMenu.java.patch @@ -244,7 +244,7 @@ ItemStack itemstack = ItemStack.EMPTY; Slot slot1 = (Slot) this.slots.get(slot); -@@ -293,4 +385,17 @@ +@@ -293,4 +385,23 @@ return itemstack; } @@ -261,4 +261,10 @@ + return this.bukkitEntity; + } + // CraftBukkit end ++ ++ // Paper start - add enchantment seed update API ++ public void setEnchantmentSeed(int seed) { ++ this.enchantmentSeed.set(seed); ++ } ++ // Paper end - add enchantment seed update API } diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftEnchantmentView.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftEnchantmentView.java index 17f0ce8fcb..abe709ab90 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftEnchantmentView.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/view/CraftEnchantmentView.java @@ -26,6 +26,13 @@ public class CraftEnchantmentView extends CraftInventoryView