Syncing RespawnManager state with clients

This commit is contained in:
Regalis
2017-03-20 20:44:20 +02:00
parent dde0160956
commit 2c688f40e3
4 changed files with 113 additions and 38 deletions

View File

@@ -111,11 +111,11 @@ namespace Barotrauma
spawnQueue.Enqueue(new ItemSpawnInfo(itemPrefab, inventory));
}
public void AddToRemoveQueue(Item item)
public void AddToRemoveQueue(Entity entity)
{
if (GameMain.Client != null) return;
removeQueue.Enqueue(item);
removeQueue.Enqueue(entity);
}
public void Update()