mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-12-29 17:17:29 +01:00
Fix #73
This commit is contained in:
parent
bbc530a067
commit
5b2e3a44c3
@ -58,7 +58,7 @@ minetest.register_globalstep(function(dtime)
|
|||||||
handle_active_blocks_timer = handle_active_blocks_timer + dtime
|
handle_active_blocks_timer = handle_active_blocks_timer + dtime
|
||||||
if handle_active_blocks_timer >= handle_active_blocks_step then
|
if handle_active_blocks_timer >= handle_active_blocks_step then
|
||||||
handle_active_blocks_timer = handle_active_blocks_timer - handle_active_blocks_step
|
handle_active_blocks_timer = handle_active_blocks_timer - handle_active_blocks_step
|
||||||
local active_block_range = tonumber(minetest.setting_get("active_block_range"))
|
local active_block_range = tonumber(minetest.setting_get("active_block_range")) or 2
|
||||||
local new_active_blocks = {}
|
local new_active_blocks = {}
|
||||||
for _, player in ipairs(minetest.get_connected_players()) do
|
for _, player in ipairs(minetest.get_connected_players()) do
|
||||||
local blockpos = get_blockpos(player:getpos())
|
local blockpos = get_blockpos(player:getpos())
|
||||||
|
Loading…
Reference in New Issue
Block a user