fix non existent variable

This commit is contained in:
Alexsandro Percy 2025-03-02 08:31:43 -03:00
parent 125809583a
commit b760311243

View file

@ -382,10 +382,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
if fields.turn_auto_pilot_on then
if ent._autopilot == true then
ent._autopilot = false
core.chat_send_player(self.driver_name,S(" >>> Autopilot deactivated"))
core.chat_send_player(ent.driver_name,S(" >>> Autopilot deactivated"))
else
ent._autopilot = true
core.chat_send_player(self.driver_name,core.colorize('#00ff00', S(" >>> Autopilot activated")))
core.chat_send_player(ent.driver_name,core.colorize('#00ff00', S(" >>> Autopilot activated")))
end
end
if fields.manual then