fix 0 lenght inventory and added new icon for the motorcycle wheel

This commit is contained in:
Alexsandro Percy 2022-09-11 11:32:49 -03:00
parent 4d6ef290e3
commit 27c182248c
2 changed files with 6 additions and 4 deletions

View File

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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 23 KiB