forked from nalc/homedecor_modpack
		
	Replace deprecated methods:
- 'setting_get' with 'settings:get' - 'setting_getbool' with 'settings:get_bool'
This commit is contained in:
		
				
					committed by
					
						
						Vanessa Ezekowitz
					
				
			
			
				
	
			
			
			
						parent
						
							459c02548e
						
					
				
				
					commit
					7925897748
				
			@@ -15,7 +15,7 @@ homedecor = {
 | 
				
			|||||||
	modpath = modpath,
 | 
						modpath = modpath,
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	-- infinite stacks
 | 
						-- infinite stacks
 | 
				
			||||||
	expect_infinite_stacks = minetest.setting_getbool("creative_mode") and not minetest.get_modpath("unified_inventory")
 | 
						expect_infinite_stacks = minetest.settings:get_bool("creative_mode") and not minetest.get_modpath("unified_inventory")
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
 | 
					-- Determine if the item being pointed at is the underside of a node (e.g a ceiling)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -108,6 +108,6 @@ minetest.register_lbm({
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.setting_get("log_mods") then
 | 
					if minetest.settings:get("log_mods") then
 | 
				
			||||||
	minetest.log("action", "[lrfurn/armchairs] "..S("Loaded!"))
 | 
						minetest.log("action", "[lrfurn/armchairs] "..S("Loaded!"))
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -65,6 +65,6 @@ minetest.register_craft({
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.setting_get("log_mods") then
 | 
					if minetest.settings:get("log_mods") then
 | 
				
			||||||
	minetest.log("action", "[lrfurn/coffeetable] "..S("Loaded!"))
 | 
						minetest.log("action", "[lrfurn/coffeetable] "..S("Loaded!"))
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,6 +48,6 @@ minetest.register_craft({
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.setting_get("log_mods") then
 | 
					if minetest.settings:get("log_mods") then
 | 
				
			||||||
	minetest.log("action", "[lrfurn/endtable] "..S("Loaded!"))
 | 
						minetest.log("action", "[lrfurn/endtable] "..S("Loaded!"))
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -122,6 +122,6 @@ minetest.register_lbm({
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.setting_get("log_mods") then
 | 
					if minetest.settings:get("log_mods") then
 | 
				
			||||||
	minetest.log("action", "[lrfurn/longsofas] "..S("Loaded!"))
 | 
						minetest.log("action", "[lrfurn/longsofas] "..S("Loaded!"))
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -122,6 +122,6 @@ minetest.register_lbm({
 | 
				
			|||||||
	end
 | 
						end
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
if minetest.setting_get("log_mods") then
 | 
					if minetest.settings:get("log_mods") then
 | 
				
			||||||
	minetest.log("action", "[lrfurn/sofas] "..S("Loaded!"))
 | 
						minetest.log("action", "[lrfurn/sofas] "..S("Loaded!"))
 | 
				
			||||||
end
 | 
					end
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user