in prefabs/lightflier.lua
local function OnWorked(inst, worker) local owner = inst.components.homeseeker ~= nil and inst.components.homeseeker.home or nil if owner ~= nil and owner.components.childspawner ~= nil then owner.components.childspawner:OnChildKilled(inst) end if worker.components.inventory ~= nil then worker.components.inventory:GiveItem(inst, nil, inst:GetPosition()) end end
Everything should be put into the worker.components.inventory ~= nil to solve the bug
please also check prefabs/mosquito.lua
Steps to Reproduce
take a closer look at the above code
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now