Skip to content

Commit

Permalink
Allow digging injectors without clearing the filter (mt-mods#141)
Browse files Browse the repository at this point in the history
Thie PR allows diging injectors without clearing their filter inventory. I can't see a reason why this was nessessary.
  • Loading branch information
Emojigit authored Oct 20, 2024
1 parent 7079fff commit 222a865
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions filter-injector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}},
}

Expand Down

0 comments on commit 222a865

Please sign in to comment.