Skip to content

Commit fe55ac9

Browse files
wsor4035codiac
andauthored
fix mineclonia support (#183)
* fix mineclonia support * fix luacheck --------- Co-authored-by: codiac <codiac@inbox.lv>
1 parent 62b966a commit fe55ac9

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.luacheckrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ read_globals = {
1515
"default", "mesecon", "digilines",
1616
"screwdriver", "unified_inventory",
1717
"i3", "mcl_experience", "awards",
18-
"xcompat", "fakelib", "vizlib"
18+
"xcompat", "fakelib", "vizlib",
19+
"mcl_redstone",
1920
}

filter-injector.lua

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -540,6 +540,16 @@ for _, data in ipairs({
540540
node.on_punch = function (pos, node, puncher)
541541
punch_filter(data, pos, node)
542542
end
543+
node._mcl_redstone = {
544+
connects_to = function(node, dir)
545+
return true
546+
end,
547+
update = function(pos, node)
548+
if mcl_redstone.get_power(pos) ~= 0 then
549+
punch_filter(data, pos, node)
550+
end
551+
end,
552+
}
543553
end
544554

545555

0 commit comments

Comments
 (0)