Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
SPIGOT-5298: Remove unexplained 0.1 drop chance offset
Dieser Commit ist enthalten in:
Ursprung
6ed8a18966
Commit
96bc85f0b4
@ -196,17 +196,17 @@ public class CraftEntityEquipment implements EntityEquipment {
|
|||||||
|
|
||||||
private void setDropChance(EnumItemSlot slot, float chance) {
|
private void setDropChance(EnumItemSlot slot, float chance) {
|
||||||
if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) {
|
if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) {
|
||||||
((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] = chance - 0.1F;
|
((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] = chance;
|
||||||
} else {
|
} else {
|
||||||
((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] = chance - 0.1F;
|
((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] = chance;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private float getDropChance(EnumItemSlot slot) {
|
private float getDropChance(EnumItemSlot slot) {
|
||||||
if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) {
|
if (slot == EnumItemSlot.MAINHAND || slot == EnumItemSlot.OFFHAND) {
|
||||||
return ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()] + 0.1F;
|
return ((EntityInsentient) entity.getHandle()).dropChanceHand[slot.b()];
|
||||||
} else {
|
} else {
|
||||||
return ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()] + 0.1F;
|
return ((EntityInsentient) entity.getHandle()).dropChanceArmor[slot.b()];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren