Skip to content

Commit

Permalink
fix GetEquipSlot
Browse files Browse the repository at this point in the history
  • Loading branch information
direwolf420 committed May 8, 2022
1 parent 3271aff commit 913b082
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Base/DrawLayers/CrazyBundleOfAssortedBalloonsLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
return false;
}

return drawPlayer.balloon == Mod.GetEquipSlot(nameof(CrazyBundleOfAssortedBalloons), EquipType.Balloon);
return drawPlayer.balloon == EquipLoader.GetEquipSlot(Mod, nameof(CrazyBundleOfAssortedBalloons), EquipType.Balloon);
}

public override Position GetDefaultPosition()
Expand Down
2 changes: 1 addition & 1 deletion Base/DrawLayers/HarvesterWingsLayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
return false;
}

return drawInfo.drawPlayer.wings == Mod.GetEquipSlot(nameof(HarvesterWings), EquipType.Wings);
return drawInfo.drawPlayer.wings == EquipLoader.GetEquipSlot(Mod, nameof(HarvesterWings), EquipType.Wings);
}

public override Position GetDefaultPosition()
Expand Down
2 changes: 1 addition & 1 deletion Items/Armor/SoulSaviorPlatePlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class SoulSaviorPlatePlayer : AssPlayerBase
{
public override void ModifyDrawInfo(ref PlayerDrawSet drawInfo)
{
int bodyType = Mod.GetEquipSlot(nameof(SoulSaviorPlate), EquipType.Body);
int bodyType = EquipLoader.GetEquipSlot(Mod, nameof(SoulSaviorPlate), EquipType.Body);
if (drawInfo.drawPlayer.body == bodyType)
{
drawInfo.bodyGlowColor = Color.White;
Expand Down

0 comments on commit 913b082

Please sign in to comment.