mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-26 12:31:05 +01:00
Remove hardcoded one element array
This commit is contained in:
parent
5f0ad98dae
commit
ca37ce5744
1 changed files with 1 additions and 9 deletions
|
@ -5,14 +5,6 @@
|
|||
|
||||
local S = minetest.get_translator("mcl_stonecutter")
|
||||
|
||||
-- compatible items for the stonecutter
|
||||
local compaitble_items = {
|
||||
}
|
||||
|
||||
local FMT = {
|
||||
item_image_button = "item_image_button[%f,%f;%f,%f;%s;%s;%s]",
|
||||
}
|
||||
|
||||
-- formspecs
|
||||
local function show_stonecutter_formspec(items, input)
|
||||
local cut_items = {}
|
||||
|
@ -27,7 +19,7 @@ local function show_stonecutter_formspec(items, input)
|
|||
y_len = y_len + 1
|
||||
x_len = 1
|
||||
end
|
||||
local test = string.format(FMT.item_image_button,x_len+1,y_len,1,1, value, "item_button", value)
|
||||
local test = string.format("item_image_button[%f,%f;%f,%f;%s;%s;%s]",x_len+1,y_len,1,1, value, "item_button", value)
|
||||
cut_items[index] = test
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue