mirror of
https://github.com/minetest-mods/technic.git
synced 2024-09-27 15:00:18 +02:00
purge quarry cache more often
This commit is contained in:
parent
fcf8fafcfe
commit
529d09d98e
|
@ -207,7 +207,11 @@ local function execute_dig(pos, node, meta)
|
||||||
left = inv:add_item("cache", left)
|
left = inv:add_item("cache", left)
|
||||||
end
|
end
|
||||||
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
|
break
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user