diff --git a/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/DiningEnchantment.java b/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/DiningEnchantment.java index 8af3328..5abfa66 100644 --- a/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/DiningEnchantment.java +++ b/src/main/java/org/auioc/mcmod/harmonicench/enchantment/impl/DiningEnchantment.java @@ -35,7 +35,7 @@ *

* 食用食物后,将玩家增加的饥饿值转化为该物品的耐久度。 *

* * @author WakelessSloth56 @@ -74,13 +74,13 @@ public boolean isTreasureOnly() { public Pair onPlayerEat(int lvl, ItemStack itemStack, EquipmentSlot slot, ServerPlayer player, ItemStack foodItemStack, int nutrition, float saturationModifier) { if (itemStack.isDamaged() && nutrition > 0) { int damage = itemStack.getDamageValue(); - int c = (int) Math.ceil(damage / 20.0D); + int c = (int) Math.ceil(damage / 10.0D); if (nutrition >= c) { saturationModifier *= ((float) c) / ((float) nutrition); nutrition -= c; damage = 0; } else { - damage -= nutrition * 20; + damage -= nutrition * 10; saturationModifier = 0.0F; nutrition = 0; }