aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorNovatux <nathanael.courant@laposte.net>2014-01-12 13:53:10 +0100
committerNovatux <nathanael.courant@laposte.net>2014-01-12 14:31:32 +0100
commit676f34a02be17d898ea45b1b05be72bfcfcd588e (patch)
treebf3f6a3f5a8abfae1547160e0a17561cb4d5f0b4 /builtin
parenta3586cd18d5a6182a578dc08a6dbc23e16df4c14 (diff)
downloadminetest-676f34a02be17d898ea45b1b05be72bfcfcd588e.tar.gz
minetest-676f34a02be17d898ea45b1b05be72bfcfcd588e.tar.bz2
minetest-676f34a02be17d898ea45b1b05be72bfcfcd588e.zip
Fix doc and forceloading crash.
Diffstat (limited to 'builtin')
-rw-r--r--builtin/forceloading.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/forceloading.lua b/builtin/forceloading.lua
index 021de075b..84895792b 100644
--- a/builtin/forceloading.lua
+++ b/builtin/forceloading.lua
@@ -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