From 1454f82e519c47fe4843e3b50cbcd2c0aeb06d3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20Vukanovi=C4=87?= Date: Thu, 27 Jul 2017 13:44:15 +0200 Subject: [PATCH] Decrease the limit of the tool breaking warning. --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 14c8431..27232d0 100644 --- a/init.lua +++ b/init.lua @@ -59,7 +59,7 @@ function toolranks.new_afteruse(itemstack, user, node, digparams) if(digparams.wear > 0) then dugnodes = dugnodes + 1 end - if(itemstack:get_wear() > 65135) then + if(itemstack:get_wear() > 60135) then minetest.chat_send_player(user:get_player_name(), "Your tool is about to break, comrade!") minetest.sound_play("default_tool_breaks", { to_player = user:get_player_name(),