Fix TNT init for undefined enable_tnt setting
This commit is contained in:
parent
0822a3df13
commit
02a033714d
4
init.lua
4
init.lua
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user