Skip to content

Commit 9f79707

Browse files
committed
Fixed startup error caused by tModLoader changes to PlayerDrawLayer
1 parent 8beaab5 commit 9f79707

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1313
- Changed "Not the Bees" effect to increase the number of bees spawned.
1414
- Changed "Give Nadir" effect to increase the max stack size to avoid filling the inventory if spammed.
1515
- Changed "Infinite Ammo & Mana" effect to increase maximum number of sentries and turrets.
16+
- Fixed startup error caused by tModLoader changes to PlayerDrawLayer.
1617

1718
## [2.1.0] - 2024-08-31
1819

Code/Utilities/MorphUtils.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ public override bool GetDefaultVisibility(PlayerDrawSet drawInfo)
221221

222222
public override Position GetDefaultPosition()
223223
{
224-
return new Between(PlayerDrawLayers.Skin, PlayerDrawLayers.HeldItem);
224+
return new Between(null, PlayerDrawLayers.FirstVanillaLayer);
225+
// return new Between(PlayerDrawLayers.Skin, PlayerDrawLayers.HeldItem);
225226
}
226227

227228
protected override void Draw(ref PlayerDrawSet drawInfo)

0 commit comments

Comments
 (0)