mirror of
https://github.com/minetest-mods/MoreMesecons.git
synced 2025-01-09 17:30:24 +01:00
Fixing wireless jammer rules
This commit is contained in:
parent
8ec08fb4b7
commit
6619af67f9
@ -134,6 +134,7 @@ mesecon.register_node("moremesecons_wireless:jammer", {
|
|||||||
},
|
},
|
||||||
groups = {dig_immediate=2},
|
groups = {dig_immediate=2},
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
|
rules = mesecon.rules.flat,
|
||||||
action_on = function(pos)
|
action_on = function(pos)
|
||||||
add_jammer(pos)
|
add_jammer(pos)
|
||||||
minetest.swap_node(pos, {name="moremesecons_wireless:jammer_on"})
|
minetest.swap_node(pos, {name="moremesecons_wireless:jammer_on"})
|
||||||
@ -160,6 +161,7 @@ mesecon.register_node("moremesecons_wireless:jammer", {
|
|||||||
},
|
},
|
||||||
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
groups = {dig_immediate=2, not_in_creative_inventory=1},
|
||||||
mesecons = {effector = {
|
mesecons = {effector = {
|
||||||
|
rules = mesecon.rules.flat,
|
||||||
action_off = function(pos)
|
action_off = function(pos)
|
||||||
remove_jammer(pos)
|
remove_jammer(pos)
|
||||||
minetest.swap_node(pos, {name="moremesecons_wireless:jammer_off"})
|
minetest.swap_node(pos, {name="moremesecons_wireless:jammer_off"})
|
||||||
|
Loading…
Reference in New Issue
Block a user