1
0
mirror of https://github.com/BlockMen/invtweak.git synced 2025-08-05 17:50:19 +02:00

2 Commits

2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,6 @@
Minetest mod "Inventory Tweaks"
===============================
version: 2.0
version: 2.0.1
License of source code: WTFPL
-----------------------------

View File

@ -34,6 +34,9 @@ local function add_buttons(player, formspec)
formspec = player:get_inventory_formspec()
end
local w,h = get_formspec_size(formspec)
if not w or not h then
return
end
for i=1,#tweak.buttons do
formspec = formspec .. "button["..w-2+(i*0.5)..",-0.2;" .. tweak.buttons[i]
end
@ -285,3 +288,5 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
end
end
end)
minetest.log("action", "[invtweak] loaded.")