1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2024-12-27 11:20:26 +01:00

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.
This commit is contained in:
1F616EMO~nya 2024-10-21 00:13:20 +08:00 committed by GitHub
parent 7079fff85f
commit 222a865e17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -451,11 +451,6 @@ for _, data in ipairs({
if not pipeworks.may_configure(pos, player) then return 0 end if not pipeworks.may_configure(pos, player) then return 0 end
return count return count
end, 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}}, tube = {connect_sides = {right = 1}},
} }