From 6967232619cfc6f5751d30390473181941b46c9b Mon Sep 17 00:00:00 2001 From: Gabriel Huber Date: Fri, 25 Jul 2014 19:12:01 +0200 Subject: [PATCH] Fix TNT init for undefined enable_tnt setting --- mods/tnt/init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mods/tnt/init.lua b/mods/tnt/init.lua index 1182acae..a2e5adaa 100644 --- a/mods/tnt/init.lua +++ b/mods/tnt/init.lua @@ -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 -- 2.25.1