mirror of
https://github.com/lisacvuk/minetest-toolranks.git
synced 2024-08-19 04:44:03 +02:00
Fixed a bug crashing Minetest when dug nodes count exceeds 799.
This commit is contained in:
parent
93eaab0ff0
commit
68cf70d20d
2
CHANGELOG
Normal file
2
CHANGELOG
Normal file
@ -0,0 +1,2 @@
|
||||
12.7.2017
|
||||
- Fixed bug making Minetest crash when dug nodes exceed 799
|
4
init.lua
4
init.lua
@ -38,8 +38,10 @@ function get_level(uses)
|
||||
elseif uses < 400 then
|
||||
return 3
|
||||
elseif uses < 800 then
|
||||
return 4
|
||||
elseif uses < 1600 then
|
||||
return 5
|
||||
elseif uses > 1600 then
|
||||
else
|
||||
return 6
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user