purge quarry every 99 digs instead of 100

so only one stack needs to be ejected when digging through a single material

thanks Huhhila :)
This commit is contained in:
OgelGames 2023-02-13 21:28:31 +11:00
parent 5040260783
commit fd2844ea44

View File

@ -193,7 +193,7 @@ local function do_digging(pos, meta, net_time)
end
end
dug = dug + 1
if full or dug % 100 == 0 then
if full or dug % 99 == 0 then
-- Time to purge the cache
meta:set_int("purge_on", 1)
end