Skip to content

Commit 7b84105

Browse files
committedFeb 15, 2016
Consistently use UNIX line endings (LF instead of CR LF)
1 parent 80f72b2 commit 7b84105

File tree

2 files changed

+210
-210
lines changed

2 files changed

+210
-210
lines changed
 

Diff for: ‎mesecons/settings.lua

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
-- SETTINGS
2-
function mesecon.setting(setting, default)
3-
if type(default) == "boolean" then
4-
local read = minetest.setting_getbool("mesecon."..setting)
5-
if read == nil then
6-
return default
7-
else
8-
return read
9-
end
10-
elseif type(default) == "string" then
11-
return minetest.setting_get("mesecon."..setting) or default
12-
elseif type(default) == "number" then
13-
return tonumber(minetest.setting_get("mesecon."..setting) or default)
14-
end
15-
end
1+
-- SETTINGS
2+
function mesecon.setting(setting, default)
3+
if type(default) == "boolean" then
4+
local read = minetest.setting_getbool("mesecon."..setting)
5+
if read == nil then
6+
return default
7+
else
8+
return read
9+
end
10+
elseif type(default) == "string" then
11+
return minetest.setting_get("mesecon."..setting) or default
12+
elseif type(default) == "number" then
13+
return tonumber(minetest.setting_get("mesecon."..setting) or default)
14+
end
15+
end

0 commit comments

Comments
 (0)