From 529d09d98e59b152c6c10b680bcf06fed432efcf Mon Sep 17 00:00:00 2001 From: OgelGames Date: Fri, 5 Jun 2020 22:38:51 +1000 Subject: [PATCH] purge quarry cache more often --- technic/machines/HV/quarry.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index aa2c1a1..0b28ffd 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -207,7 +207,11 @@ local function execute_dig(pos, node, meta) left = inv:add_item("cache", left) end end - meta:set_int("dug", meta:get_int("dug") + 1) + local dug_nodes = meta:get_int("dug") + 1 + meta:set_int("dug", dug_nodes) + if dug_nodes % 100 == 0 then + meta:set_int("purge_on", 1) + end break end end