Fixed empty string storage in existing Alchemy Arrays.
This commit is contained in:
parent
ad546380a3
commit
11e56158d3
5 changed files with 16 additions and 10 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue