From 244419d686bc371cd241e735188cd7286e258651 Mon Sep 17 00:00:00 2001 From: Mike Primm Date: Thu, 23 Jun 2011 08:08:33 -0500 Subject: [PATCH] Fix reported traps in Armor calculation when armor is incomplete - not sure how this didn't happen more - possibly bukkit behavior change? --- src/main/java/org/dynmap/Armor.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/dynmap/Armor.java b/src/main/java/org/dynmap/Armor.java index 1e5a26e3..f05d4f10 100644 --- a/src/main/java/org/dynmap/Armor.java +++ b/src/main/java/org/dynmap/Armor.java @@ -2,6 +2,7 @@ package org.dynmap; import org.bukkit.entity.Player; import org.bukkit.inventory.ItemStack; +import org.bukkit.Material; public class Armor { /** @@ -17,7 +18,12 @@ public class Armor { double baseArmorPoints = 0; ItemStack inventory[] = player.getInventory().getArmorContents(); for(int i=0;i