This commit is contained in:
CortexCore
2023-12-16 23:30:08 +08:00
parent 78216a3d47
commit 961ae8feb4
33 changed files with 369 additions and 148 deletions

View File

@@ -237,8 +237,8 @@ namespace BITFALL.Items
private void Tick(float obj)
{
if(gameService.CurrentState is not IGamePlayingState) return;
if(gameService.CurrentState is not IGamePlayingState || !this) return;
while (_registerQueue.TryDequeue(out var item))
{
if (!item || _worldItems.TryAdd(item.Id,item) is false) continue;