Fixed issue on mineclonia related to player_api not found

This commit is contained in:
Luar Roji 2025-05-13 01:40:17 -03:00
parent 52694c5063
commit 5e88fc1b48

View File

@ -78,7 +78,9 @@ function automobiles_lib.on_rightclick (self, clicker)
else
--minetest.chat_send_all("clicou")
--a passenger
if not player_api.player_attached[name] then
if (automobiles_lib.is_minetest and not player_api.player_attached[name]) or
(airutils.is_mcl and mcl_player.player_attached[name]) then
--there is no passenger, so lets attach
if self.driver_name then
local attach_pax_f = automobiles_lib.attach_pax