aboutsummaryrefslogtreecommitdiff
path: root/circular_saw.lua
diff options
context:
space:
mode:
authorCalinou <calinou@opmbx.org>2014-07-21 12:24:49 +0200
committerCalinou <calinou@opmbx.org>2014-07-21 12:24:49 +0200
commitf7916005c2fe14a2aa7f9052abcffd250b67ffcc (patch)
tree4488ce6705bd0a7c87e3afb731b374a8dfa06968 /circular_saw.lua
parent28741bf242f64fe52fc686fe3683d5015a90f3e2 (diff)
downloadmoreblocks-f7916005c2fe14a2aa7f9052abcffd250b67ffcc.tar.gz
moreblocks-f7916005c2fe14a2aa7f9052abcffd250b67ffcc.tar.bz2
moreblocks-f7916005c2fe14a2aa7f9052abcffd250b67ffcc.zip
Code cleanup, new Stairs+ recipes.
Diffstat (limited to 'circular_saw.lua')
-rw-r--r--circular_saw.lua24
1 files changed, 12 insertions, 12 deletions
diff --git a/circular_saw.lua b/circular_saw.lua
index 47c1a8c..c8dc2ad 100644
--- a/circular_saw.lua
+++ b/circular_saw.lua
@@ -5,7 +5,7 @@ circular_saw.known_stairs = setmetatable({}, {
__newindex = function(k, v)
local modname = minetest.get_current_modname()
print(("WARNING: mod %s tried to add node %s to the circular saw"
- .." manually."):format(modname, v))
+ .. " manually."):format(modname, v))
end,
})
@@ -127,7 +127,7 @@ function circular_saw:update_inventory(pos, amount)
local material = name_parts[2]
inv:set_list("input", { -- Display as many full blocks as possible:
- node_name.." ".. math.floor(amount / 8)
+ node_name.. " " .. math.floor(amount / 8)
})
-- The stairnodes made of default nodes use moreblocks namespace, other mods keep own:
@@ -269,16 +269,16 @@ gui_slots = "listcolors[#606060AA;#808080;#101010;#202020;#FFF]"
function circular_saw.on_construct(pos)
local meta = minetest.get_meta(pos)
- meta:set_string("formspec", "size[11,9]"..gui_slots..
- "label[0,0;"..S("Input\nmaterial").."]"..
- "list[current_name;input;1.5,0;1,1;]"..
- "label[0,1;"..S("Left-over").."]"..
- "list[current_name;micro;1.5,1;1,1;]"..
- "label[0,2;"..S("Recycle\noutput").."]"..
- "list[current_name;recycle;1.5,2;1,1;]"..
- "field[0.3,3.5;1,1;max_offered;"..S("Max")..":;${max_offered}]"..
- "button[1,3.2;1,1;Set;"..S("Set").."]"..
- "list[current_name;output;2.8,0;8,4;]"..
+ meta:set_string("formspec", "size[11,9]" ..gui_slots..
+ "label[0,0;" ..S("Input\nmaterial").. "]" ..
+ "list[current_name;input;1.5,0;1,1;]" ..
+ "label[0,1;" ..S("Left-over").. "]" ..
+ "list[current_name;micro;1.5,1;1,1;]" ..
+ "label[0,2;" ..S("Recycle\noutput").. "]" ..
+ "list[current_name;recycle;1.5,2;1,1;]" ..
+ "field[0.3,3.5;1,1;max_offered;" ..S("Max").. ":;${max_offered}]" ..
+ "button[1,3.2;1,1;Set;" ..S("Set").. "]" ..
+ "list[current_name;output;2.8,0;8,4;]" ..
"list[current_player;main;1.5,5;8,4;]")
meta:set_int("anz", 0) -- No microblocks inside yet.