mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 11:14:44 +02:00
Two small fixes (#4321)
* Fixed armor counting in BleedTimerTask * Key instead of Name for Piercing
This commit is contained in:
@ -69,9 +69,11 @@ public class BleedTimerTask extends BukkitRunnable {
|
||||
}
|
||||
|
||||
//Count Armor
|
||||
for(ItemStack armorPiece : ((Player) target).getInventory().getArmorContents())
|
||||
{
|
||||
armorCount++;
|
||||
for (ItemStack armorPiece : ((Player) target).getInventory().getArmorContents()) {
|
||||
//We only want to count slots that contain armor.
|
||||
if (armorPiece != null) {
|
||||
armorCount++;
|
||||
}
|
||||
}
|
||||
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user