Skip to content
Snippets Groups Projects
Commit 88d591ae authored by Milan Ihl's avatar Milan Ihl
Browse files

disable only singleplayer-check

parent 14ee61ab
No related branches found
No related tags found
No related merge requests found
-- 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 = {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment