diff --git a/inventory_management.lua b/inventory_management.lua index 4cc94e8..b5b136a 100644 --- a/inventory_management.lua +++ b/inventory_management.lua @@ -4,6 +4,11 @@ airutils.modname = minetest.get_current_modname() local function get_formspec_by_size(self, size) local background = default.gui_bg .. default.gui_bg_img .. default.gui_slots local default_inventory_formspecs = { + ["2"]="size[8,6]".. background .. + "list[detached:" .. self._inv_id .. ";main;3.0,0;3,1;]" .. + "list[current_player;main;0,2;8,4;]" .. + "listring[]", + ["3"]="size[8,6]".. background .. "list[detached:" .. self._inv_id .. ";main;2.5,0;3,1;]" .. "list[current_player;main;0,2;8,4;]" .. diff --git a/lib_planes/entities.lua b/lib_planes/entities.lua index 884cb35..528aa83 100644 --- a/lib_planes/entities.lua +++ b/lib_planes/entities.lua @@ -602,7 +602,7 @@ function airutils.on_rightclick(self, clicker) if airutils.set_param_paint(self, clicker, itmstck, 2) == false then if clicker:get_player_control().aux1 == true then --lets see the inventory - airutils.show_vehicle_trunk_formspec(self, clicker, airutils.trunk_slots) + airutils.show_vehicle_trunk_formspec(self, clicker, self._trunk_slots) else if is_under_water then return end --remove pax to prevent bug