mirror of
https://github.com/minetest-mods/i3.git
synced 2024-12-26 19:00:39 +01:00
Small cleanup
This commit is contained in:
parent
d95caf847a
commit
b62687e84b
@ -546,8 +546,7 @@ local function get_inventory_fs(player, data, fs)
|
|||||||
local max_val = damage_enabled and 12 or 7
|
local max_val = damage_enabled and 12 or 7
|
||||||
|
|
||||||
if data.subcat == 1 and data.bag_size then
|
if data.subcat == 1 and data.bag_size then
|
||||||
local v = {6, 16, 26, 32}
|
max_val = max_val + min(32, 6 + ((data.bag_size - 1) * 10))
|
||||||
max_val = max_val + v[data.bag_size]
|
|
||||||
|
|
||||||
elseif i3.modules.armor and data.subcat == 2 then
|
elseif i3.modules.armor and data.subcat == 2 then
|
||||||
if data.scrbar_inv >= max_val then
|
if data.scrbar_inv >= max_val then
|
||||||
|
Loading…
Reference in New Issue
Block a user