Skip to content

Commit 5024ca9

Browse files
committed
fix: prevent floor boosters from blocking room transition refill
1 parent c7339e5 commit 5024ca9

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

Code/Entities/FloorBooster.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,15 +251,21 @@ private static bool Player_RefillDash(On.Celeste.Player.orig_RefillDash orig, Pl
251251
{
252252
// Fix crashes with vanilla entities that refill the dash.
253253
if (self.Scene is null || self.Dead)
254-
return false;
254+
return orig(self);
255+
256+
// Prevent blocking refill on room transitions
257+
Level level = self.Scene as Level;
258+
if (level.Transitioning)
259+
return orig(self);
255260

256261
foreach (FloorBooster entity in self.Scene.Tracker.GetEntities<FloorBooster>())
257262
{
258263
if (!entity.IceMode)
259264
continue;
260265

261266
if (self.CollideCheck(entity) && self.OnGround()
262-
&& self.Bottom <= entity.Bottom && entity.NoRefillsOnIce)
267+
&& self.Bottom <= entity.Bottom
268+
&& entity.NoRefillsOnIce)
263269
return false;
264270
}
265271

0 commit comments

Comments
 (0)