fix inventory

This commit is contained in:
Alexsandro Percy 2022-09-11 11:35:29 -03:00
parent 27c182248c
commit 4752800d79

View File

@ -117,10 +117,12 @@ end
function automobiles_lib.show_vehicle_trunk_formspec(self, player, size) function automobiles_lib.show_vehicle_trunk_formspec(self, player, size)
if size then if size then
local form = get_formspec_by_size(self, size) local form = get_formspec_by_size(self, size)
if form then
minetest.show_formspec(player:get_player_name(), automobiles_lib.modname .. ":inventory", minetest.show_formspec(player:get_player_name(), automobiles_lib.modname .. ":inventory",
form form
) )
end end
end
end end
function automobiles_lib.create_inventory(self, size, owner) function automobiles_lib.create_inventory(self, size, owner)