1
0
mirror of https://github.com/SmallJoker/bitchange.git synced 2024-11-15 23:30:18 +01:00

Fix deprecated call to Minetest settings

This commit is contained in:
bri cassa 2021-03-03 22:56:10 +01:00
parent 98a2dc8572
commit 498dadfee6

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)