adding infotext about ownership

master
Alexsandro Percy 2020-09-06 22:38:21 -03:00
parent c4ea41e81f
commit 916a4884d1
1 changed files with 3 additions and 0 deletions

View File

@ -194,6 +194,9 @@ minetest.register_entity("helicopter:heli", {
self.color = data.stored_color
self.driver_name = data.stored_driver_name
--minetest.debug("loaded: ", self.energy)
local properties = self.object:get_properties()
properties.infotext = "Nice helicopter of " .. data.stored_owner
self.object:set_properties(properties)
end
helicopter.paint(self, self.color)