Updates roulette, fixes camera cursor and lucker entity setting along with minigame cleanup

This commit is contained in:
gamer147
2023-08-04 00:03:51 -04:00
parent 5f804f5c24
commit 1b34af21ee
5 changed files with 28 additions and 14 deletions

View File

@@ -25,7 +25,10 @@ public partial class Lucker : Entity
set
{
InternalPawn = value;
value.Owner = this;
if ( value != null )
{
value.Owner = this;
}
}
}

View File

@@ -80,7 +80,7 @@ public partial class MinigameManager : Entity
}
InvolvedPlayers.ForEach( player =>
{
player.Pawn.Delete();
player.Pawn?.Delete();
player.Pawn = null;
} );
}
@@ -102,6 +102,7 @@ public partial class MinigameManager : Entity
}
LoadedMinigame.Cleanup();
CleanupPlayerPawns();
LoadedMinigame = null;
return true;