From da5ddbc073f0966c1b01fcfb9065dac8d1c37a98 Mon Sep 17 00:00:00 2001 From: Evil Factory <36804725+evilfactory@users.noreply.github.com> Date: Tue, 23 Nov 2021 18:17:59 -0300 Subject: [PATCH] fix compatibility itemprefab.AddToSpawnQueue not working --- .../BarotraumaServer/ServerSource/Lua/LuaBarotraumaAdditions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Barotrauma/BarotraumaServer/ServerSource/Lua/LuaBarotraumaAdditions.cs b/Barotrauma/BarotraumaServer/ServerSource/Lua/LuaBarotraumaAdditions.cs index 5bed0546d..48cb62307 100644 --- a/Barotrauma/BarotraumaServer/ServerSource/Lua/LuaBarotraumaAdditions.cs +++ b/Barotrauma/BarotraumaServer/ServerSource/Lua/LuaBarotraumaAdditions.cs @@ -84,7 +84,7 @@ namespace Barotrauma 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 }); });