mirror of
https://github.com/APercy/ap_airship.git
synced 2025-03-14 23:41:21 +00:00
added auto remove code
This commit is contained in:
parent
5c81cc7858
commit
1b4354151b
1 changed files with 5 additions and 1 deletions
|
@ -597,8 +597,12 @@ minetest.register_entity("ap_airship:airship", {
|
|||
|
||||
--minetest.debug("loaded: ", self._energy)
|
||||
local properties = self.object:get_properties()
|
||||
properties.infotext = data.stored_owner .. " nice airship"
|
||||
properties.infotext = (data.stored_owner or "") .. " nice airship"
|
||||
self.object:set_properties(properties)
|
||||
if data.remove then
|
||||
self.object:remove()
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
local colstr = ap_airship.colors[self.color]
|
||||
|
|
Loading…
Add table
Reference in a new issue