mirror of
https://github.com/lisacvuk/minetest-toolranks.git
synced 2024-11-14 14:00:21 +01:00
Decrease the limit of the tool breaking warning.
This commit is contained in:
parent
eac63a4606
commit
1454f82e51
2
init.lua
2
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(),
|
||||
|
|
Loading…
Reference in New Issue
Block a user