1
0
mirror of https://github.com/mt-mods/pipeworks.git synced 2025-12-27 21:55:22 +01:00

fix mineclonia support (#183)

* fix mineclonia support

* fix luacheck

---------

Co-authored-by: codiac <codiac@inbox.lv>
This commit is contained in:
wsor4035
2025-12-26 23:24:20 -05:00
committed by GitHub
parent 62b966ab6c
commit fe55ac970c
2 changed files with 12 additions and 1 deletions

View File

@@ -15,5 +15,6 @@ read_globals = {
"default", "mesecon", "digilines",
"screwdriver", "unified_inventory",
"i3", "mcl_experience", "awards",
"xcompat", "fakelib", "vizlib"
"xcompat", "fakelib", "vizlib",
"mcl_redstone",
}

View File

@@ -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