1
0
mirror of https://github.com/minetest/minetest_game.git synced 2024-11-16 06:50:18 +01:00

Fix TNT init for undefined enable_tnt setting

This commit is contained in:
Gabriel Huber 2014-07-25 19:12:01 +02:00 committed by ShadowNinja
parent 263b6f2fdf
commit 6967232619

View File

@ -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