mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-07 06:06:10 -04:00
Settings: Use new settings object
This commit is contained in:
parent
e523c3a296
commit
eec1c5a03b
9 changed files with 16 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
tnt = {}
|
||||
|
||||
-- Default to enabled when in singleplayer
|
||||
local enable_tnt = minetest.setting_getbool("enable_tnt")
|
||||
local enable_tnt = minetest.settings:get_bool("enable_tnt")
|
||||
if enable_tnt == nil then
|
||||
enable_tnt = minetest.is_singleplayer()
|
||||
end
|
||||
|
@ -12,7 +12,7 @@ local loss_prob = {}
|
|||
loss_prob["default:cobble"] = 3
|
||||
loss_prob["default:dirt"] = 4
|
||||
|
||||
local tnt_radius = tonumber(minetest.setting_get("tnt_radius") or 3)
|
||||
local tnt_radius = tonumber(minetest.settings:get("tnt_radius") or 3)
|
||||
|
||||
-- Fill a list with data for content IDs, after all nodes are registered
|
||||
local cid_data = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue