aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorh-v-smacker <hans-von-smacker+github@gmail.com>2018-11-12 02:37:34 +0300
committerh-v-smacker <hans-von-smacker+github@gmail.com>2018-11-12 02:37:34 +0300
commita751b4d03d38532a435bceb25bcede1b089c3f9d (patch)
treeef684cacbd152a12098ca91b0c46480c3160f4a2
parent719fac36eb95efa604d31ecc87ea37b8a7b3b039 (diff)
downloadglass_stained-a751b4d03d38532a435bceb25bcede1b089c3f9d.zip
glass_stained-a751b4d03d38532a435bceb25bcede1b089c3f9d.tar.gz
glass_stained-a751b4d03d38532a435bceb25bcede1b089c3f9d.tar.bz2
no magic numbers
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index e646d56..edf7bbb 100644
--- a/init.lua
+++ b/init.lua
@@ -1,3 +1,5 @@
+local default_yield = 3
+
local node_list = {
-- GLASS PANES-----------------------------------------------------
{ name = "glass_normal",
@@ -244,7 +246,7 @@ for _,node in ipairs(node_list) do
})
- minetest.register_craft({output = "glass_stained:" .. node.name .. " " .. (node.yield or 3),
+ minetest.register_craft({output = "glass_stained:" .. node.name .. " " .. (node.yield or default_yield),
recipe = node.recipe
})