Skip to content

Commit

Permalink
Disable hitbox changes of Perfect Dodge if Smart Moving is present. Y…
Browse files Browse the repository at this point in the history
…es, this makes the modifier useless with smart moving.
  • Loading branch information
bonii-xx committed Sep 9, 2014
1 parent 5bfa35c commit d9c3f26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/armor/ArmorAbilities.java
Expand Up @@ -16,6 +16,7 @@ public class ArmorAbilities
//Abilities
boolean morphed;
boolean morphLoaded = Loader.isModLoaded("Morph");
boolean smartmoveLoaded = Loader.isModLoaded("SmartMoving");

public static List<String> stepBoostedPlayers = new ArrayList();
//ItemStack prevFeet;
Expand Down Expand Up @@ -91,7 +92,7 @@ else if (stepBoosted && (feet == null || !(feet.getItem() instanceof TravelGear)
}
}

if (!player.isPlayerSleeping())
if (!player.isPlayerSleeping() && !smartmoveLoaded)
{
ItemStack chest = player.getCurrentArmor(2);
if (chest == null || !(chest.getItem() instanceof IModifyable))
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/armor/ArmorAbilitiesClient.java
Expand Up @@ -21,6 +21,7 @@ public class ArmorAbilitiesClient

boolean morphed;
boolean morphLoaded = Loader.isModLoaded("Morph");
boolean smartmoveLoaded = Loader.isModLoaded("SmartMoving");

float prevMouseSensitivity;
boolean sprint;
Expand Down Expand Up @@ -108,7 +109,7 @@ else if (sprint)
}
}

if (!player.isPlayerSleeping() && !morphed)
if (!player.isPlayerSleeping() && !morphed && !smartmoveLoaded)
{
ItemStack chest = player.getCurrentArmor(2);
if (chest == null || !(chest.getItem() instanceof IModifyable))
Expand Down

0 comments on commit d9c3f26

Please sign in to comment.