1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-24 01:30:38 +01:00

fix global var in forceload

This commit is contained in:
crabman77 2015-03-24 15:58:53 +01:00
parent b8a7b3d8e1
commit 59aef367cd

View File

@ -6,6 +6,8 @@ function minetest.pos_to_string(pos)
return _pts(pos)
end
local elapsed_time = 0
-- Makes sure that force load areas are handled correctly
function ForceloadManager(filetoopen, hide_file_errors)
local blocks = {}
@ -141,7 +143,7 @@ minetest.register_craft({
}
})
local elapsed_time = 0
local count = 0
minetest.register_globalstep(function(dtime)
count = count + dtime