forked from mtcontrib/pipeworks
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",
|
"default", "mesecon", "digilines",
|
||||||
"screwdriver", "unified_inventory",
|
"screwdriver", "unified_inventory",
|
||||||
"i3", "mcl_experience", "awards",
|
"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)
|
node.on_punch = function (pos, node, puncher)
|
||||||
punch_filter(data, pos, node)
|
punch_filter(data, pos, node)
|
||||||
end
|
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
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user