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:
@@ -15,5 +15,6 @@ read_globals = {
|
||||
"default", "mesecon", "digilines",
|
||||
"screwdriver", "unified_inventory",
|
||||
"i3", "mcl_experience", "awards",
|
||||
"xcompat", "fakelib", "vizlib"
|
||||
"xcompat", "fakelib", "vizlib",
|
||||
"mcl_redstone",
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user