mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 03:43:40 +01:00
SPIGOT-5298: Remove unexplained 0.1 drop chance offset
By: md_5 <git@md-5.net>
This commit is contained in:
parent
64c4a3290c
commit
84d9696c39
1 changed files with 4 additions and 4 deletions
|
@ -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()];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue