mirror of
https://github.com/APercy/automobiles_pck
synced 2025-07-23 06:38:55 +02:00
fix
This commit is contained in:
parent
f38a33685c
commit
87a5ae0e7f
@ -729,8 +729,8 @@ minetest.register_entity("automobiles_buggy:buggy", {
|
||||
buggy.driver_formspec(name)
|
||||
else
|
||||
if name == self.owner then
|
||||
if clicker:get_player_control().sneak == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, 8)
|
||||
if clicker:get_player_control().aux1 == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, buggy.trunk_slots)
|
||||
else
|
||||
--is the owner, okay, lets attach
|
||||
automobiles_lib.attach_driver(self, clicker)
|
||||
|
@ -757,8 +757,8 @@ minetest.register_entity("automobiles_coupe:coupe", {
|
||||
coupe.driver_formspec(name)
|
||||
else
|
||||
if name == self.owner then
|
||||
if clicker:get_player_control().sneak == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, 8)
|
||||
if clicker:get_player_control().aux1 == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, coupe.trunk_slots)
|
||||
else
|
||||
--is the owner, okay, lets attach
|
||||
automobiles_lib.attach_driver(self, clicker)
|
||||
|
@ -702,8 +702,8 @@ minetest.register_entity("automobiles_roadster:roadster", {
|
||||
roadster.driver_formspec(name)
|
||||
else
|
||||
if name == self.owner then
|
||||
if clicker:get_player_control().sneak == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, 12)
|
||||
if clicker:get_player_control().aux1 == true then
|
||||
automobiles_lib.show_vehicle_trunk_formspec(self, clicker, roadster.trunk_slots)
|
||||
else
|
||||
--is the owner, okay, lets attach
|
||||
automobiles_lib.attach_driver(self, clicker)
|
||||
|
Loading…
Reference in New Issue
Block a user