disable only singleplayer-check

This commit is contained in:
Milan Ihl 2015-12-02 10:34:06 +01:00
parent 14ee61ab92
commit 88d591ae01

View File

@ -1,11 +1,11 @@
-- 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 ~= true) or
(singleplayer and setting == false) then
return
end
--local singleplayer = minetest.is_singleplayer()
--local setting = minetest.setting_getbool("enable_tnt")
--if (not singleplayer and setting ~= true) or
-- (singleplayer and setting == false) then
-- return
--end
-- loss probabilities array (one in X will be lost)
local loss_prob = {}