Skip to content

Commit

Permalink
Test an update to fix crashes
Browse files Browse the repository at this point in the history
  • Loading branch information
AxeBane authored Mar 2, 2022
1 parent 318b09e commit 72d9806
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions Common/Races/Kitsune/Kitsune.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,17 +150,18 @@ public override void ModifyDrawInfo(Player player, Mod mod, ref PlayerDrawInfo d

public override void ModifyDrawLayers(Player player, List<PlayerLayer> layers)
{

int tailLayer = layers.IndexOf(PlayerLayer.Legs) - 1;
layers.Insert(tailLayer, KitsuneTail);

layers.Insert(tailLayer+1, KitsuneTail_Color);
base.ModifyDrawLayers(player, layers);
if (modPlayer != null) {
int tailLayer = layers.IndexOf(PlayerLayer.Legs) - 1;
layers.Insert(tailLayer, KitsuneTail);

bool hideChestplate = modPlayer.hideChestplate;
bool hideLeggings = modPlayer.hideLeggings;

modPlayer.updatePlayerSprites("MrPlagueRaces/Content/RaceTextures/", "ShaggyAddonRaces/Content/RaceTextures/Kitsune/", hideChestplate, hideLeggings, 4, 0, "Kitsune", false, false, false);
layers.Insert(tailLayer+1, KitsuneTail_Color);
base.ModifyDrawLayers(player, layers);

bool hideChestplate = modPlayer.hideChestplate;
bool hideLeggings = modPlayer.hideLeggings;

modPlayer.updatePlayerSprites("MrPlagueRaces/Content/RaceTextures/", "ShaggyAddonRaces/Content/RaceTextures/Kitsune/", hideChestplate, hideLeggings, 4, 0, "Kitsune", false, false, false);
}
}


Expand Down

0 comments on commit 72d9806

Please sign in to comment.