mirror of
https://github.com/minetest-mods/mesecons.git
synced 2025-07-01 15:20:23 +02:00
Test horiz_rules_getter
This commit is contained in:
@ -80,13 +80,7 @@ do
|
|||||||
end
|
end
|
||||||
|
|
||||||
do
|
do
|
||||||
local function get_rules(node)
|
local get_rules = mesecon.horiz_rules_getter({{x = 1, y = 0, z = 0}, {x = -1, y = 0, z = 0}})
|
||||||
local rules = {{x = 1, y = 0, z = 0}, {x = -1, y = 0, z = 0}}
|
|
||||||
if node.param2 == 1 or node.param2 == 3 then
|
|
||||||
rules = mesecon.rotate_rules_right(rules)
|
|
||||||
end
|
|
||||||
return rules
|
|
||||||
end
|
|
||||||
local off_spec = {conductor = {
|
local off_spec = {conductor = {
|
||||||
state = mesecon.state.off,
|
state = mesecon.state.off,
|
||||||
rules = get_rules,
|
rules = get_rules,
|
||||||
|
Reference in New Issue
Block a user