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
|
||||
|
||||
|
||||
sneeker.debug = core.settings:get_bool('enable_debug_mods')
|
||||
if sneeker.debug == nil then
|
||||
sneeker.debug = false
|
||||
end
|
||||
sneeker.debug = core.settings:get_bool('enable_debug_mods') or false
|
||||
|
Loading…
Reference in New Issue
Block a user