Skip to content

Commit a127381

Browse files
committed
Fix BowlPuffer crash in Update method
1 parent a7378bf commit a127381

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/Entities/BowlPuffer.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,6 +511,7 @@ public override void Update() {
511511
shatterTimer -= 1.5f * Engine.DeltaTime;
512512

513513
Player player = Scene.Tracker.GetEntity<Player>();
514+
if (player is not null)
514515
lastPlayerPos = player.Center;
515516

516517
switch (state) {

0 commit comments

Comments
 (0)