mapload_boost/init.lua

14 lines
410 B
Lua
Raw Normal View History

2020-04-02 07:51:16 +02:00
local reload_period = 1
local time_left = reload_period + 10
local load_radius = 16
minetest.register_globalstep(function(dtime)
time_left = time_left - dtime
if time_left < 0 then
time_left = reload_period
for _, player in ipairs(minetest.get_connected_players()) do
2020-07-08 11:55:20 +02:00
minetest.get_voxel_manip(vector.subtract(player:get_pos(), load_radius), vector.add(player:get_pos(), load_radius))
2020-04-02 07:51:16 +02:00
end
end
end)