Decrease the limit of the tool breaking warning.

This commit is contained in:
Stefan Vukanović 2017-07-27 13:44:15 +02:00
parent eac63a4606
commit 1454f82e51

View File

@ -59,7 +59,7 @@ function toolranks.new_afteruse(itemstack, user, node, digparams)
if(digparams.wear > 0) then if(digparams.wear > 0) then
dugnodes = dugnodes + 1 dugnodes = dugnodes + 1
end 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.chat_send_player(user:get_player_name(), "Your tool is about to break, comrade!")
minetest.sound_play("default_tool_breaks", { minetest.sound_play("default_tool_breaks", {
to_player = user:get_player_name(), to_player = user:get_player_name(),