mirror of
				https://github.com/minetest-mods/maptools.git
				synced 2025-10-31 08:05:24 +01:00 
			
		
		
		
	Fix minetest.setting_getbool() deprecation warning
				
					
				
			This commit is contained in:
		| @@ -8,7 +8,7 @@ Licensed under the zlib license. See LICENSE.md for more information. | ||||
| maptools.config = {} | ||||
|  | ||||
| local function getbool_default(setting, default) | ||||
| 	local value = minetest.setting_getbool(setting) | ||||
| 	local value = minetest.settings:get_bool(setting) | ||||
| 	if value == nil then | ||||
| 		value = default | ||||
| 	end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user