Skip to content
Permalink
Browse files

Consistently use UNIX line endings (LF instead of CR LF)

  • Loading branch information...
Jeija committed Feb 15, 2016
1 parent 80f72b2 commit 7b84105512c6cf38e70f014457d238adf030460d
Showing with 210 additions and 210 deletions.
  1. +15 −15 mesecons/settings.lua
  2. +195 −195 mesecons_commandblock/init.lua
@@ -1,15 +1,15 @@
-- SETTINGS
function mesecon.setting(setting, default)
if type(default) == "boolean" then
local read = minetest.setting_getbool("mesecon."..setting)
if read == nil then
return default
else
return read
end
elseif type(default) == "string" then
return minetest.setting_get("mesecon."..setting) or default
elseif type(default) == "number" then
return tonumber(minetest.setting_get("mesecon."..setting) or default)
end
end
-- SETTINGS
function mesecon.setting(setting, default)
if type(default) == "boolean" then
local read = minetest.setting_getbool("mesecon."..setting)
if read == nil then
return default
else
return read
end
elseif type(default) == "string" then
return minetest.setting_get("mesecon."..setting) or default
elseif type(default) == "number" then
return tonumber(minetest.setting_get("mesecon."..setting) or default)
end
end
Oops, something went wrong.

0 comments on commit 7b84105

Please sign in to comment.
You can’t perform that action at this time.