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:
parent
a3586cd18d
commit
676f34a02b
2 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue