Removing & spawning entities in the same order as the server, EntitySpawner does both removing and spawning
This commit is contained in:
@@ -337,12 +337,12 @@ namespace Barotrauma
|
||||
|
||||
if (spawnPos != null)
|
||||
{
|
||||
Item.Spawner.QueueItem(itemPrefab, (Vector2)spawnPos);
|
||||
Item.Spawner.AddToSpawnQueue(itemPrefab, (Vector2)spawnPos);
|
||||
|
||||
}
|
||||
else if (spawnInventory != null)
|
||||
{
|
||||
Item.Spawner.QueueItem(itemPrefab, (Inventory)spawnInventory);
|
||||
Item.Spawner.AddToSpawnQueue(itemPrefab, (Inventory)spawnInventory);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user