Fixed melee damage, trick shot, and defense stat trackers.
This commit is contained in:
parent
fa6b338a03
commit
b406bb4672
4 changed files with 20 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue