Jump to content

Crash after removing itemweigher component from entity


Legend_Master
  • Pending

Got `variable 'type' is not declared` after removing itemweigher component from entity

Caused by missing self on components/itemweigher.lua L.23

function ItemWeigher:OnRemoveFromEntity()
    type = nil -- to remove the tag
end
function ItemWeigher:OnRemoveFromEntity()
    self.type = nil -- to remove the tag
end

 


Steps to Reproduce

Remove itemweigher component from a entity




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