From 222a865e17a109980296ac075aeffcfcd976f79f Mon Sep 17 00:00:00 2001 From: 1F616EMO~nya Date: Mon, 21 Oct 2024 00:13:20 +0800 Subject: [PATCH] Allow digging injectors without clearing the filter (#141) Thie PR allows diging injectors without clearing their filter inventory. I can't see a reason why this was nessessary. --- filter-injector.lua | 5 ----- 1 file changed, 5 deletions(-) diff --git a/filter-injector.lua b/filter-injector.lua index 293a066..cac4858 100644 --- a/filter-injector.lua +++ b/filter-injector.lua @@ -451,11 +451,6 @@ for _, data in ipairs({ if not pipeworks.may_configure(pos, player) then return 0 end return count end, - can_dig = function(pos, player) - local meta = minetest.get_meta(pos) - local inv = meta:get_inventory() - return inv:is_empty("main") - end, tube = {connect_sides = {right = 1}}, }