1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix doc and forceloading crash.

This commit is contained in:
Novatux 2014-01-12 13:53:10 +01:00
parent a3586cd18d
commit 676f34a02b
2 changed files with 3 additions and 1 deletions

View file

@ -22,7 +22,7 @@ function minetest.forceload_block(pos)
blocks_forceloaded[hash] = blocks_forceloaded[hash] + 1
return true
else
if total_forceloaded >= (minetest.setting_get("max_forceloaded_blocks") or 16) then
if total_forceloaded >= (tonumber(minetest.setting_get("max_forceloaded_blocks")) or 16) then
return false
end
total_forceloaded = total_forceloaded+1