Skip to content
Snippets Groups Projects
Commit 69672326 authored by Gabriel Huber's avatar Gabriel Huber Committed by ShadowNinja
Browse files

Fix TNT init for undefined enable_tnt setting

parent 263b6f2f
Branches
Tags
No related merge requests found
......@@ -2,8 +2,8 @@
-- Default to enabled in singleplayer and disabled in multiplayer
local singleplayer = minetest.is_singleplayer()
local setting = minetest.setting_getbool("enable_tnt")
if (not singleplayer and setting ~= false) or
(singleplayer and setting ~= true) then
if (not singleplayer and setting ~= true) or
(singleplayer and setting == false) then
return
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment