From: Gabriel Huber Date: Fri, 25 Jul 2014 17:12:01 +0000 (+0200) Subject: Fix TNT init for undefined enable_tnt setting X-Git-Tag: 0.4.11~60 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6967232619cfc6f5751d30390473181941b46c9b;p=oweals%2Fminetest_game.git Fix TNT init for undefined enable_tnt setting --- 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