forked from Mirrorlandia_minetest/mod-sneeker
Use 'or' to optimize 'settings:get_bool'
This commit is contained in:
parent
38c6e79718
commit
c364ad6e85
@ -1,7 +1,4 @@
|
|||||||
-- Settings for sneeker mod
|
-- Settings for sneeker mod
|
||||||
|
|
||||||
|
|
||||||
sneeker.debug = core.settings:get_bool('enable_debug_mods')
|
sneeker.debug = core.settings:get_bool('enable_debug_mods') or false
|
||||||
if sneeker.debug == nil then
|
|
||||||
sneeker.debug = false
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user