fix of infotext
parent
916a4884d1
commit
01b4d92044
4
init.lua
4
init.lua
|
@ -435,6 +435,10 @@ minetest.register_entity("helicopter:heli", {
|
|||
end
|
||||
|
||||
if name == self.driver_name then
|
||||
local properties = self.object:get_properties()
|
||||
properties.infotext = "Nice helicopter of " .. self.owner
|
||||
self.object:set_properties(properties)
|
||||
|
||||
-- driver clicked the object => driver gets off the vehicle
|
||||
self.driver_name = nil
|
||||
-- sound and animation
|
||||
|
|
Loading…
Reference in New Issue