Fixed empty string storage in existing Alchemy Arrays.

This commit is contained in:
WayofTime 2016-06-28 07:20:28 -04:00
parent ad546380a3
commit 11e56158d3
5 changed files with 16 additions and 10 deletions

View file

@ -98,12 +98,13 @@ public class LivingArmourHandler
if (event.getEntityLiving() instanceof EntityPlayer)
{
EntityPlayer player = (EntityPlayer) event.getEntityLiving();
boolean hasAssist = false;
if (event.getEntityLiving().isPotionActive(ModPotions.boost))
{
player.stepHeight = 1.0f;
hasAssist = true;
player.stepHeight = Constants.Misc.ALTERED_STEP_HEIGHT;
} else
{
boolean hasAssist = false;
if (LivingArmour.hasFullSet(player))
{
ItemStack chestStack = player.getItemStackFromSlot(EntityEquipmentSlot.CHEST);
@ -119,11 +120,11 @@ public class LivingArmourHandler
}
}
}
if (!hasAssist)
player.stepHeight = 0.6f;
}
if (!hasAssist && player.stepHeight == Constants.Misc.ALTERED_STEP_HEIGHT)
player.stepHeight = 0.6f;
float percentIncrease = 0;
if (LivingArmour.hasFullSet(player))