1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2025-06-28 06:11:47 +02:00

Updated plantlife

- Added `if` statements to avoid populating areas when lag is too high
This commit is contained in:
LeMagnesium
2015-02-09 18:20:35 +01:00
parent 6237c70e77
commit 47bf36a8c3
5 changed files with 80 additions and 54 deletions

View File

@ -326,7 +326,7 @@ end
-- a surface during the initial map read stage.
function plantslib:generate_block_with_air_checking(dtime)
if dtime > 0.2 then return end -- don't attempt to populate if lag is too high
if #plantslib.blocklist_aircheck > 0 then
local minp = plantslib.blocklist_aircheck[1][1]
@ -376,7 +376,7 @@ end
-- checking for air during the initial map read stage.
function plantslib:generate_block_no_aircheck(dtime)
if dtime > 0.2 then return end
if #plantslib.blocklist_no_aircheck > 0 then
local minp = plantslib.blocklist_no_aircheck[1][1]