forked from minetest-mods/moreores
		
	Supprime la dépendance de farming devenue obsolète et problématique
- Moreores est devenue une dépendance de farming afin de définir les hoes en argent et mythril. Les hoes définies par moreores sont donc devenues redondantes. De plus, cela a créé une dépendance circulaire entre les mods farming -> toolranks -> moreores -> farming
This commit is contained in:
		
							
								
								
									
										18
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										18
									
								
								init.lua
									
									
									
									
									
								
							| @@ -195,17 +195,6 @@ local function add_ore(modname, description, mineral_name, oredef) | |||||||
|  |  | ||||||
| 		local fulltool_name = tool_base .. tool_name .. tool_post | 		local fulltool_name = tool_base .. tool_name .. tool_post | ||||||
|  |  | ||||||
| 		if tool_name == "hoe" and minetest.get_modpath("farming") then |  | ||||||
| 			tdef.max_uses = tooldef.uses |  | ||||||
| 			tdef.description = S("%s Hoe"):format(S(description)) |  | ||||||
| 			farming.register_hoe(fulltool_name, tdef) |  | ||||||
| 		end |  | ||||||
|  |  | ||||||
| 		-- Hoe registration is handled above. |  | ||||||
| 		-- There are no crafting recipes for hoes, as they have been |  | ||||||
| 		-- deprecated from Minetest Game: |  | ||||||
| 		-- https://github.com/minetest/minetest_game/commit/9c459e77a |  | ||||||
| 		if tool_name ~= "hoe" then |  | ||||||
| 		minetest.register_tool(fulltool_name, tdef) | 		minetest.register_tool(fulltool_name, tdef) | ||||||
|  |  | ||||||
| 		if oredef.makes.ingot then | 		if oredef.makes.ingot then | ||||||
| @@ -214,7 +203,6 @@ local function add_ore(modname, description, mineral_name, oredef) | |||||||
| 				recipe = get_recipe(ingot, tool_name) | 				recipe = get_recipe(ingot, tool_name) | ||||||
| 			}) | 			}) | ||||||
| 		end | 		end | ||||||
| 		end |  | ||||||
|  |  | ||||||
| 		minetest.register_alias(tool_name .. tool_post, fulltool_name) | 		minetest.register_alias(tool_name .. tool_post, fulltool_name) | ||||||
| 	end | 	end | ||||||
| @@ -235,9 +223,6 @@ local oredefs = { | |||||||
| 			pick = { | 			pick = { | ||||||
| 				cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1}, | 				cracky = {times = {[1] = 2.60, [2] = 1.00, [3] = 0.60}, uses = 100, maxlevel = 1}, | ||||||
| 			}, | 			}, | ||||||
| 			hoe = { |  | ||||||
| 				uses = 300, |  | ||||||
| 			}, |  | ||||||
| 			shovel = { | 			shovel = { | ||||||
| 				crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel = 1}, | 				crumbly = {times = {[1] = 1.10, [2] = 0.40, [3] = 0.25}, uses = 100, maxlevel = 1}, | ||||||
| 			}, | 			}, | ||||||
| @@ -268,9 +253,6 @@ local oredefs = { | |||||||
| 			pick = { | 			pick = { | ||||||
| 				cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel = 2} | 				cracky = {times = {[1] = 2.25, [2] = 0.55, [3] = 0.35}, uses = 200, maxlevel = 2} | ||||||
| 			}, | 			}, | ||||||
| 			hoe = { |  | ||||||
| 				uses = 1000, |  | ||||||
| 			}, |  | ||||||
| 			shovel = { | 			shovel = { | ||||||
| 				crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel = 2}, | 				crumbly = {times = {[1] = 0.70, [2] = 0.35, [3] = 0.20}, uses = 200, maxlevel = 2}, | ||||||
| 			}, | 			}, | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user