Skip to content

Commit

Permalink
Redoing the setting morphed, Still works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Behrhof committed Aug 8, 2014
1 parent 45e2342 commit e07036a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/main/java/tconstruct/armor/ArmorAbilities.java
Expand Up @@ -87,7 +87,7 @@ else if (stepBoosted && (feet == null || !(feet.getItem() instanceof TravelGear)

if (morphLoaded)
{
if (morph.api.Api.getMorphEntity(player.getDisplayName(), true) != null)
if (morph.api.Api.hasMorph(player.getCommandSenderName(), event.side.isClient()))
{
morphed = true;
}
Expand All @@ -98,7 +98,7 @@ else if (stepBoosted && (feet == null || !(feet.getItem() instanceof TravelGear)
ItemStack chest = player.getCurrentArmor(2);
if (chest == null || !(chest.getItem() instanceof IModifyable))
{
if (!morphLoaded && !morphed)
if (!(morphLoaded && morphed))
PlayerAbilityHelper.setEntitySize(player, 0.6F, 1.8F);
}
else
Expand All @@ -107,7 +107,7 @@ else if (stepBoosted && (feet == null || !(feet.getItem() instanceof TravelGear)
int dodge = tag.getInteger("Perfect Dodge");
if (dodge > 0)
{
if (!morphLoaded && !morphed)
if (!(morphLoaded && morphed))
PlayerAbilityHelper.setEntitySize(player, Math.max(0.15F, 0.6F - (dodge * 0.09f)), 1.8F - (dodge * 0.04f));
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/armor/ArmorAbilitiesClient.java
Expand Up @@ -102,7 +102,7 @@ else if (sprint)

if (morphLoaded)
{
if (morph.api.Api.getMorphEntity(player.getDisplayName(), true) != null)
if (morph.api.Api.hasMorph(player.getCommandSenderName(), event.side.isClient()))
{
morphed = true;
}
Expand Down

0 comments on commit e07036a

Please sign in to comment.