mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-16 13:58:01 +02:00
Fixed issue on mineclonia related to player_api not found
This commit is contained in:
parent
52694c5063
commit
5e88fc1b48
@ -78,7 +78,9 @@ function automobiles_lib.on_rightclick (self, clicker)
|
|||||||
else
|
else
|
||||||
--minetest.chat_send_all("clicou")
|
--minetest.chat_send_all("clicou")
|
||||||
--a passenger
|
--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
|
--there is no passenger, so lets attach
|
||||||
if self.driver_name then
|
if self.driver_name then
|
||||||
local attach_pax_f = automobiles_lib.attach_pax
|
local attach_pax_f = automobiles_lib.attach_pax
|
||||||
|
Loading…
Reference in New Issue
Block a user