mirror of
https://github.com/APercy/airutils.git
synced 2025-04-30 08:41:41 -04:00
fix inventory
This commit is contained in:
parent
7fb54cff3b
commit
ca979a9490
2 changed files with 6 additions and 1 deletions
|
@ -4,6 +4,11 @@ airutils.modname = minetest.get_current_modname()
|
||||||
local function get_formspec_by_size(self, size)
|
local function get_formspec_by_size(self, size)
|
||||||
local background = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
local background = default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||||
local default_inventory_formspecs = {
|
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 ..
|
["3"]="size[8,6]".. background ..
|
||||||
"list[detached:" .. self._inv_id .. ";main;2.5,0;3,1;]" ..
|
"list[detached:" .. self._inv_id .. ";main;2.5,0;3,1;]" ..
|
||||||
"list[current_player;main;0,2;8,4;]" ..
|
"list[current_player;main;0,2;8,4;]" ..
|
||||||
|
|
|
@ -602,7 +602,7 @@ function airutils.on_rightclick(self, clicker)
|
||||||
if airutils.set_param_paint(self, clicker, itmstck, 2) == false then
|
if airutils.set_param_paint(self, clicker, itmstck, 2) == false then
|
||||||
|
|
||||||
if clicker:get_player_control().aux1 == true then --lets see the inventory
|
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
|
else
|
||||||
if is_under_water then return end
|
if is_under_water then return end
|
||||||
--remove pax to prevent bug
|
--remove pax to prevent bug
|
||||||
|
|
Loading…
Add table
Reference in a new issue