disable only singleplayer-check
This commit is contained in:
parent
14ee61ab92
commit
88d591ae01
@ -1,11 +1,11 @@
|
|||||||
|
|
||||||
-- 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 ~= true) or
|
--if (not singleplayer and setting ~= true) or
|
||||||
(singleplayer and setting == false) then
|
-- (singleplayer and setting == false) then
|
||||||
return
|
-- return
|
||||||
end
|
--end
|
||||||
|
|
||||||
-- loss probabilities array (one in X will be lost)
|
-- loss probabilities array (one in X will be lost)
|
||||||
local loss_prob = {}
|
local loss_prob = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user