Game crashes when object is placed down, and picked up, after lua mod moves object into players inventory and activates it.
- Place following code in a lua mod.
local function onPlayerAdded(player)
l_player = player
local egg = world.createObject('misc_uniq_egg_of_gold', 1)
egg:moveInto(types.Actor.inventory(player))
async:newUnsavableSimulationTimer(0.2, function()
egg:activateBy(player)
end)
end
- Open player inventory
- Observe there are 2 eggs when there should only be 1 egg.
- Place both eggs on the floor.
- Attempt to pick both eggs back up.
- Observe the game crashes.
Edited by jvoisin