mirror of
https://github.com/APercy/automobiles_pck
synced 2025-06-15 13:28:02 +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
|
||||
--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
|
||||
|
Loading…
Reference in New Issue
Block a user