Fix deprecated call to Minetest settings

This commit is contained in:
bri cassa 2021-03-22 08:14:01 +01:00
parent 79ee74ceb4
commit 2a64cb7d84

View File

@ -18,7 +18,7 @@ local path = minetest.get_modpath("fishing").."/"
fishing_setting = {}
fishing_setting.func = {}
fishing_setting.is_creative_mode = minetest.setting_getbool("creative_mode")
fishing_setting.is_creative_mode = minetest.settings:get_bool("creative_mode")
fishing_setting.file_settings = minetest.get_worldpath() .. "/fishing_config.txt"
fishing_setting.file_trophies = minetest.get_worldpath() .. "/fishing_trophies.txt"
fishing_setting.file_contest = minetest.get_worldpath() .. "/fishing_contest.txt"