Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ read_globals = {
"default", "mesecon", "digilines",
"screwdriver", "unified_inventory",
"i3", "mcl_experience", "awards",
"xcompat", "fakelib", "vizlib"
"xcompat", "fakelib", "vizlib",
"mcl_redstone",
}
10 changes: 10 additions & 0 deletions filter-injector.lua
Original file line number Diff line number Diff line change
Expand Up @@ -540,6 +540,16 @@ for _, data in ipairs({
node.on_punch = function (pos, node, puncher)
punch_filter(data, pos, node)
end
node._mcl_redstone = {
connects_to = function(node, dir)
return true
end,
update = function(pos, node)
if mcl_redstone.get_power(pos) ~= 0 then
punch_filter(data, pos, node)
end
end,
}
end


Expand Down