Fixed a bug crashing Minetest when dug nodes count exceeds 799.

This commit is contained in:
Stefan Vukanović 2017-07-12 14:04:34 +02:00
parent 93eaab0ff0
commit 68cf70d20d
2 changed files with 5 additions and 1 deletions

2
CHANGELOG Normal file
View File

@ -0,0 +1,2 @@
12.7.2017
- Fixed bug making Minetest crash when dug nodes exceed 799

View File

@ -38,8 +38,10 @@ function get_level(uses)
elseif uses < 400 then elseif uses < 400 then
return 3 return 3
elseif uses < 800 then elseif uses < 800 then
return 4
elseif uses < 1600 then
return 5 return 5
elseif uses > 1600 then else
return 6 return 6
end end
end end