Fix doc and forceloading crash.

This commit is contained in:
Nathanaël Courant 2014-01-12 13:53:10 +01:00 committed by Nils Dagsson Moskopp
parent 67d99a67be
commit 56525d21d2
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 1 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