Jump to content

Hanging Vines do not save its spawnpatch unlike Grabbing Vine


KXWl1
  • DLC VERSION - IMPORTANT!: Hamlet Pending

Hanging Vines do not save its spawnpatch unlike Grabbing Vine. The followings are missing code:

 

local function onsave(inst, data)
    local references = {}
      if inst.spawnpatch then 
          data.spawnpatch = inst.spawnpatch.GUID
          references = {data.leader}
      end
    return references
end

local function loadpostpass(inst,ents, data)
    if data then
        if data.spawnpatch then  
            local spawnpatch = ents[data.spawnpatch]
            if spawnpatch then
                inst.spawnpatch = spawnpatch.entity
            end
        end
    end
end

 


Steps to Reproduce

1. Save the game, reload a Hamlet save

2. Find a Hanging Vine, shear it.

3. Wait for a few days, the Hanging Vine will not be spawned.




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...