Clean up the redstone rules

This commit is contained in:
Wuzzy 2018-01-12 01:37:32 +01:00
parent 54c0d1d750
commit e4ab20509f
7 changed files with 44 additions and 79 deletions

View file

@ -235,13 +235,6 @@ function mcl_doors:register_door(name, def)
end
end
local mrules = {
{x = 0, y = 0, z = -1},
{x = 1, y = 0, z = 0},
{x = -1, y = 0, z = 0},
{x = 0, y = 0, z = 1},
}
minetest.register_node(name.."_b_1", {
tiles = {"blank.png", tt[2].."^[transformFXR90", tb[2], tb[2].."^[transformFX", tb[1], tb[1].."^[transformFX"},
paramtype = "light",
@ -274,7 +267,6 @@ function mcl_doors:register_door(name, def)
mesecons = { effector = {
action_on = on_mesecons_signal_open,
rules = mrules,
}},
can_dig = check_player_priv,
@ -322,7 +314,6 @@ function mcl_doors:register_door(name, def)
mesecons = { effector = {
action_on = on_mesecons_signal_open_top,
rules = mrules,
}},
can_dig = check_player_priv,
@ -370,7 +361,6 @@ function mcl_doors:register_door(name, def)
mesecons = { effector = {
action_off = on_mesecons_signal_close,
rules = mrules,
}},
can_dig = check_player_priv,
@ -418,7 +408,6 @@ function mcl_doors:register_door(name, def)
mesecons = { effector = {
action_off = on_mesecons_signal_close_top,
rules = mrules,
}},
can_dig = check_player_priv,