Skip to content

Commit 194fa6a

Browse files
committed
Fix static puffers sometimes boosting the player straight downwards
1 parent 709d3e1 commit 194fa6a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Entities/StaticPuffer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ private static void onPufferConstructor(ILContext il) {
3838
public StaticPuffer(EntityData data, Vector2 offset) : base(data, offset) {
3939
// remove the sine wave component so that it isn't updated.
4040
Get<SineWave>()?.RemoveSelf();
41+
42+
// offset the horizontal position by a tiny bit.
43+
// Vanilla puffers have a non-integer position (due to the randomized offset), making it impossible to be boosted downwards,
44+
// so we want to do the same.
45+
Position.X += 0.0001f;
4146
}
4247
}
4348
}

0 commit comments

Comments
 (0)