Skip to content

Commit

Permalink
Fix TNT init for undefined enable_tnt setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Yepoleb authored and ShadowNinja committed Jul 26, 2014
1 parent 263b6f2 commit 6967232
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mods/tnt/init.lua
Expand Up @@ -2,8 +2,8 @@
-- Default to enabled in singleplayer and disabled in multiplayer -- Default to enabled in singleplayer and disabled in multiplayer
local singleplayer = minetest.is_singleplayer() local singleplayer = minetest.is_singleplayer()
local setting = minetest.setting_getbool("enable_tnt") local setting = minetest.setting_getbool("enable_tnt")
if (not singleplayer and setting ~= false) or if (not singleplayer and setting ~= true) or
(singleplayer and setting ~= true) then (singleplayer and setting == false) then
return return
end end


Expand Down

0 comments on commit 6967232

Please sign in to comment.