Skip to content
Browse files

Fix TNT init for undefined enable_tnt setting

  • Loading branch information
Yepoleb authored and ShadowNinja committed Jul 25, 2014
1 parent 263b6f2 commit 6967232619cfc6f5751d30390473181941b46c9b
Showing with 2 additions and 2 deletions.
  1. +2 −2 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

0 comments on commit 6967232

Please sign in to comment.
You can’t perform that action at this time.