Jump to content

After igniting slurtle slime around lightflier, its home will believe it's dead


Harryyw
  • Pending

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




User Feedback


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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...