Fixed melee damage, trick shot, and defense stat trackers.

This commit is contained in:
WayofTime 2016-02-07 15:37:35 -05:00
parent fa6b338a03
commit b406bb4672
4 changed files with 20 additions and 16 deletions

View file

@ -241,8 +241,10 @@ public class LivingArmour implements ILivingArmour
writeToNBT(tag, true);
}
public static boolean hasFullSet(EntityPlayer player) {
for (int slot = 0; slot < player.inventory.armorInventory.length; slot++) {
public static boolean hasFullSet(EntityPlayer player)
{
for (int slot = 0; slot < player.inventory.armorInventory.length; slot++)
{
ItemStack slotStack = player.inventory.armorItemInSlot(slot);
if (slotStack == null || !(slotStack.getItem() instanceof ItemLivingArmour))
return false;