Skip to content

Commit a48dbba

Browse files
authored
Merge pull request #125 from EverestAPI/bubble_column_fix
Fix crash when player dies
2 parents ce86050 + ceba749 commit a48dbba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/BubblePushField.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public override void Update() {
135135

136136
if (mover.Entity is Player && mover.Entity.CollideCheck(this) && Strength > 0 && Direction != PushDirection.Down) {
137137
Player tempPlayer = (Player) mover.Entity;
138-
if (tempPlayer.Holding != null)
138+
if (tempPlayer.Holding != null || tempPlayer.Dead)
139139
return;
140140

141141
mover.Move(new Vector2(0f, -UpwardStrength));

0 commit comments

Comments
 (0)