Skip to content

Commit 0c3d60e

Browse files
committed
Fix Attached Ice Wall depth
1 parent 9f5600a commit 0c3d60e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Entities/AttachedIceWall.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public static Entity Load(Level level, LevelData levelData, Vector2 offset, Enti
1111
WallBooster iceWall = new WallBooster(entityData.Position + offset, entityData.Height, left, notCoreMode: true);
1212
StaticMover staticMover = iceWall.Get<StaticMover>();
1313
staticMover.SolidChecker = solid => iceWall.CollideCheck(solid, iceWall.Position + (left ? -2 : 2) * Vector2.UnitX);
14+
staticMover.OnAttach = platform => iceWall.Depth = platform.Depth + 1;
1415
iceWall.Get<CoreModeListener>().RemoveSelf();
1516
return iceWall;
1617
}

0 commit comments

Comments
 (0)