From 84d9696c3919a7bcd879fea72c4dde3f81b50c22 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Sat, 31 Aug 2019 16:54:49 +1000 Subject: [PATCH] SPIGOT-5298: Remove unexplained 0.1 drop chance offset By: md_5 --- .../craftbukkit/inventory/CraftEntityEquipment.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java index 03cad0b30e..3eb2402e77 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java @@ -196,17 +196,17 @@ public class CraftEntityEquipment implements EntityEquipment { private void setDropChance(EnumItemSlot slot, float chance) { if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) { - ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] = chance - 0.1F; + ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] = chance; } else { - ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] = chance - 0.1F; + ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] = chance; } } private float getDropChance(EnumItemSlot slot) { if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) { - return ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] + 0.1F; + return ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()]; } else { - return ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] + 0.1F; + return ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()]; } } }