From 8ee235b0962d2e6ef070e6211cd35bf860764b19 Mon Sep 17 00:00:00 2001 From: Louis <55180044+louisroyer@users.noreply.github.com> Date: Fri, 3 Jul 2020 02:19:12 +0200 Subject: [PATCH] Use updated api from toolranks --- hoe.lua | 2 +- init.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hoe.lua b/hoe.lua index 3042149..55bbf01 100644 --- a/hoe.lua +++ b/hoe.lua @@ -4,7 +4,7 @@ local function add_hoe(material) local hoe_on_use = ItemStack(name):get_definition().on_use minetest.override_item(name, { original_description = desc, - description = toolranks.create_description(desc, 0, 1), + description = toolranks.create_description(desc), after_use = toolranks.new_afteruse, -- we also want hoes to increase dugnodes when farming soil on_use = function(itemstack, user, pointed_thing, uses) diff --git a/init.lua b/init.lua index 243f4f6..0d6a7a0 100644 --- a/init.lua +++ b/init.lua @@ -3,7 +3,7 @@ local MP = minetest.get_modpath("toolranks_extras") toolranks_extras = {} -- mod information -toolranks_extras.mod = {version = "1.3.1", author = "Louis Royer"} +toolranks_extras.mod = {version = "1.3.2", author = "Louis Royer"} -- settings toolranks_extras.settings =