diff --git a/paper-server/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch b/paper-server/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch index 1f6086572c..644b9ac2c7 100644 --- a/paper-server/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch +++ b/paper-server/nms-patches/net/minecraft/world/entity/player/EntityHuman.patch @@ -44,6 +44,15 @@ protected int jumpTriggerTime; public float oBob; public float bob; +@@ -158,7 +173,7 @@ + public int experienceLevel; + public int totalExperience; + public float experienceProgress; +- protected int enchantmentSeed; ++ public int enchantmentSeed; + protected final float defaultFlySpeed = 0.02F; + private int lastLevelUpTime; + private final GameProfile gameProfile; @@ -169,6 +184,16 @@ @Nullable public EntityFishingHook fishing; diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java index 00d9d38437..f0b826a129 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftHumanEntity.java @@ -465,6 +465,16 @@ public class CraftHumanEntity extends CraftLivingEntity implements HumanEntity { return false; } + @Override + public int getEnchantmentSeed() { + return getHandle().enchantmentSeed; + } + + @Override + public void setEnchantmentSeed(int i) { + getHandle().enchantmentSeed = i; + } + @Override public int getExpToLevel() { return getHandle().getXpNeededForNextLevel();