added inventory destruction when auto removing

This commit is contained in:
Alexsandro Percy 2024-03-09 09:47:50 -03:00
parent ed4a9d4d3e
commit d605ae0acd
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ function airutils.on_activate(self, staticdata, dtime_s)
end
if data.remove then
airutils.destroy_inventory(self)
self.object:remove()
return
end