Merge pull request #7 from xisd/patch-1

make colored metal signs optional (default to enabled)
This commit is contained in:
Vanessa Ezekowitz 2016-10-04 05:14:42 -04:00 committed by GitHub
commit 66265132dd
1 changed files with 157 additions and 152 deletions

View File

@ -9,6 +9,8 @@
-- { delta = {entity position for 270° yaw}, exact yaw expression }
-- { delta = {entity position for 90° yaw}, exact yaw expression }
-- }
-- Made colored metal signs optionals
local enable_colored_metal_signs = true
-- CWz's keyword interact mod uses this setting.
local current_keyword = minetest.setting_get("interact_keyword") or "iaccept"
@ -844,7 +846,7 @@ if minetest.registered_nodes["default:sign_wall_steel"] then
end
-- metal, colored signs
if enable_colored_metal_signs then
local sign_colors = { "green", "yellow", "red", "white_red", "white_black", "orange", "blue", "brown" }
local sign_default_text_colors = { "f", "0", "f", "4", "0", "0", "f", "f" }
@ -886,6 +888,7 @@ for i, color in ipairs(sign_colors) do
end,
})
end
end
local signs_text_on_activate
@ -1022,6 +1025,7 @@ minetest.register_craft({
})
-- craft recipes for the metal signs
if enable_colored_metal_signs then
minetest.register_craft( {
output = "signs:sign_wall_green",
@ -1150,6 +1154,7 @@ minetest.register_craft( {
{ "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" }
},
})
end
if minetest.setting_get("log_mods") then
minetest.log("action", S("signs loaded"))