Fix deprecated call to Minetest settings (#15)

This commit is contained in:
sys4-fr 2021-03-04 08:17:30 +01:00 committed by GitHub
parent 98a2dc8572
commit 733ce6f46a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ if bitchange.enable_donationbox then
dofile(bitchange.mod_path.."/donationbox.lua")
end
if not minetest.setting_getbool("creative_mode") and bitchange.initial_give > 0 then
if not minetest.settings:get_bool("creative_mode") and bitchange.initial_give > 0 then
-- Giving initial money
minetest.register_on_newplayer(function(player)
player:get_inventory():add_item("main", "bitchange:mineninth "..bitchange.initial_give)