mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Fix doc and forceloading crash.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user