Recommended Posts

Bad Willow    18

Hi so on the Wikia page for Nettle Vines it says that there remains an unfixed bug, that nettles vines, when you save and quit and reload the game, will have their growth time reset. I have definitely noticed this happening before, but when I try actively to recreate it, either by leaving the sprinker on or off when I quit, the growth time seems to reload successfully. I see that in the nettle prefab, in its on load post pass, the pickable target time is reloaded from the save of the prefab, which seems to me to overwrite the data saved by the pickable component itself.

local function onloadpostpass(inst,newents,data)
	if data then
		if data.targettime then
			inst:DoTaskInTime(0,function() 
				inst.components.pickable.targettime = data.targettime
			end)
		end
	end
end

Does anyone know anything about this bug? When exactly does it happen and how would you fix it?

Share this post


Link to post
Share on other sites

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