From 9e06a2ed41f00c6f810bad3c0e29e0bdf92f54e4 Mon Sep 17 00:00:00 2001 From: Novatux Date: Sun, 8 Sep 2013 20:09:03 +0200 Subject: Really fix hoes this time. --- init.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 311c284..15a0d5b 100644 --- a/init.lua +++ b/init.lua @@ -61,7 +61,7 @@ local function hoe_on_use(itemstack, user, pointed_thing, uses) pos = pt.under, gain = 0.5, }) - --itemstack:add_wear(65535/(uses-1)) + itemstack:add_wear(65535/(uses-1)) return itemstack end @@ -175,13 +175,13 @@ local function add_ore(modname, description, mineral_name, oredef) minetest.register_ore(oredef.oredef) - for toolname, tdef in pairs(oredef.tools) do + for toolname, tooldef in pairs(oredef.tools) do local tdef = { description = "", inventory_image = toolimg_base .. toolname .. ".png", tool_capabilities = { max_drop_level=3, - groupcaps=tdef + groupcaps=tooldef } } @@ -204,8 +204,8 @@ local function add_ore(modname, description, mineral_name, oredef) if toolname == "hoe" then tdef.description = S("%s Hoe"):format(S(description)) - local uses = tdef.uses - tdef.uses = nil + local uses = tooldef.uses + tooldef.uses = nil tdef.on_use = function(itemstack, user, pointed_thing) return hoe_on_use(itemstack, user, pointed_thing, uses) end -- cgit v1.2.3 From 4507ebddb97444e4b38e895a443304fe9e712db8 Mon Sep 17 00:00:00 2001 From: Novatux Date: Tue, 29 Oct 2013 11:28:15 +0100 Subject: Add mg support --- init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 15a0d5b..be7386d 100644 --- a/init.lua +++ b/init.lua @@ -359,4 +359,9 @@ minetest.register_node("moreores:copper_rail", { }, }) +-- mg suppport +if minetest.get_modpath("mg") then + dofile(modpath.."/mg.lua") +end + print(S("[moreores] loaded.")) -- cgit v1.2.3