diff options
Diffstat (limited to 'src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java b/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java index 6e9f69ff..22134820 100644 --- a/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java +++ b/src/main/java/org/bukkit/craftbukkit/inventory/CraftEntityEquipment.java @@ -1,5 +1,7 @@ package org.bukkit.craftbukkit.inventory; +import net.minecraft.server.EntityInsentient; + import org.bukkit.craftbukkit.entity.CraftLivingEntity; import org.bukkit.entity.Entity; import org.bukkit.inventory.EntityEquipment; @@ -133,10 +135,10 @@ public class CraftEntityEquipment implements EntityEquipment { } private void setDropChance(int slot, float chance) { - entity.getHandle().dropChances[slot] = chance - 0.1F; + ((EntityInsentient) entity.getHandle()).dropChances[slot] = chance - 0.1F; } private float getDropChance(int slot) { - return entity.getHandle().dropChances[slot] + 0.1F; + return ((EntityInsentient) entity.getHandle()).dropChances[slot] + 0.1F; } } |