fix compatibility itemprefab.AddToSpawnQueue not working

This commit is contained in:
Evil Factory
2021-11-23 18:17:59 -03:00
parent 48aaca0fa7
commit da5ddbc073
@@ -84,7 +84,7 @@ namespace Barotrauma
public static void AddToSpawnQueue(ItemPrefab itemPrefab, Inventory inventory, object spawned = null) public static void AddToSpawnQueue(ItemPrefab itemPrefab, Inventory inventory, object spawned = null)
{ {
EntitySpawner.Spawner.AddToSpawnQueue(itemPrefab, inventory, onSpawned: (Item item) => EntitySpawner.Spawner.AddToSpawnQueue(itemPrefab, inventory, null, null, onSpawned: (Item item) =>
{ {
GameMain.Lua.CallFunction(spawned, new object[] { item }); GameMain.Lua.CallFunction(spawned, new object[] { item });
}); });