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
|
||||
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 = {}
|
||||
|
Loading…
x
Reference in New Issue
Block a user