mirror of
https://github.com/APercy/airutils.git
synced 2025-03-15 08:01:22 +00:00
fix non existent variable
This commit is contained in:
parent
125809583a
commit
b760311243
1 changed files with 2 additions and 2 deletions
|
@ -382,10 +382,10 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||||
if fields.turn_auto_pilot_on then
|
if fields.turn_auto_pilot_on then
|
||||||
if ent._autopilot == true then
|
if ent._autopilot == true then
|
||||||
ent._autopilot = false
|
ent._autopilot = false
|
||||||
core.chat_send_player(self.driver_name,S(" >>> Autopilot deactivated"))
|
core.chat_send_player(ent.driver_name,S(" >>> Autopilot deactivated"))
|
||||||
else
|
else
|
||||||
ent._autopilot = true
|
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
|
||||||
end
|
end
|
||||||
if fields.manual then
|
if fields.manual then
|
||||||
|
|
Loading…
Add table
Reference in a new issue