This commit is contained in:
Alexsandro Percy 2022-03-21 13:43:54 -03:00
parent f38a33685c
commit 87a5ae0e7f
3 changed files with 6 additions and 6 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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)