mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
Bugfix
This commit is contained in:
parent
503ef66f61
commit
2941bf22ee
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ end
|
|||
|
||||
-- If driver leaves server while driving boat
|
||||
function boat.on_detach_child(self, child)
|
||||
if minetest.get_player_by_name(self.driver) then
|
||||
if self.driver~=nil and minetest.get_player_by_name(self.driver) then
|
||||
player_api.player_attached[self.driver] = false
|
||||
end
|
||||
self.driver = nil
|
||||
|
|
Loading…
Add table
Reference in a new issue