In data/scripts/prefabs/beeswax.lua:
local function _OnFireMelt(inst, StartFireMelt, StopFireMelt) inst.firemelttask = nil inst:RemoveEventCallback("firemelt", StartFireMelt) inst:RemoveEventCallback("stopfiremelt", StopFireMelt) if not inst.melted then if inst:IsAsleep() then inst:Remove() else inst.melted = true inst.persists = false inst.components.inventoryitem.canbepickedup = false inst:AddTag("NOCLICK") inst.AnimState:PlayAnimation("melt") inst:ListenForEvent("onanimover", inst.Remove) inst:ListenForEvent("entitysleep", inst.Remove) end end end
Has an error with the specific event it should be listening for to remove itself post animation.
inst:ListenForEvent("onanimover", inst.Remove)
Should be:
inst:ListenForEvent("animover", inst.Remove)
Steps to Reproduce
Melt a beeswax prefab near a campfire and check an entity dump on the server to see that the beeswax is still there and is valid.
Melt a beeswax prefab near a campfire and check an entity dump on the server to see that the beeswax is still there and is valid.
A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
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