Use 'or' to optimize 'settings:get_bool'

This commit is contained in:
AntumDeluge 2017-07-28 17:12:54 -07:00
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