diff options
author | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-11-12 02:37:34 +0300 |
---|---|---|
committer | h-v-smacker <hans-von-smacker+github@gmail.com> | 2018-11-12 02:37:34 +0300 |
commit | a751b4d03d38532a435bceb25bcede1b089c3f9d (patch) | |
tree | ef684cacbd152a12098ca91b0c46480c3160f4a2 | |
parent | 719fac36eb95efa604d31ecc87ea37b8a7b3b039 (diff) |
no magic numbers
-rw-r--r-- | init.lua | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 }) |