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:
parent
7079fff85f
commit
222a865e17
@ -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}},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user