fix of infotext

master
Alexsandro Percy 2020-09-07 11:17:37 -03:00
parent 916a4884d1
commit 01b4d92044
1 changed files with 4 additions and 0 deletions

View File

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