aboutsummaryrefslogtreecommitdiff
path: root/advtrains/p_mesecon_iface.lua
diff options
context:
space:
mode:
authororwell96 <orwell@bleipb.de>2020-11-23 23:02:55 +0100
committerorwell96 <orwell@bleipb.de>2020-11-23 23:02:55 +0100
commit0d530ca49f924849a1ccc089f8b594e0a7ecadac (patch)
treecec3402f46b9c07d2c291df5906ff9d81bb19431 /advtrains/p_mesecon_iface.lua
parent8d58bd51cd1a48b6e82b75a1452f8a0b8ed9f6cb (diff)
downloadadvtrains-0d530ca49f924849a1ccc089f8b594e0a7ecadac.tar.gz
advtrains-0d530ca49f924849a1ccc089f8b594e0a7ecadac.tar.bz2
advtrains-0d530ca49f924849a1ccc089f8b594e0a7ecadac.zip
Fix mesecon switch override group
Fixes issues with using mesecon switches as route locks
Diffstat (limited to 'advtrains/p_mesecon_iface.lua')
-rw-r--r--advtrains/p_mesecon_iface.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/advtrains/p_mesecon_iface.lua b/advtrains/p_mesecon_iface.lua
index 87e1c6d..177112e 100644
--- a/advtrains/p_mesecon_iface.lua
+++ b/advtrains/p_mesecon_iface.lua
@@ -6,7 +6,7 @@ if not mesecon then return end
minetest.override_item("mesecons_switch:mesecon_switch_off", {
groups = {
dig_immediate=2,
- save_in_nodedb=1,
+ save_in_at_nodedb=1,
},
on_rightclick = function (pos, node)
advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2})
@@ -30,7 +30,7 @@ minetest.override_item("mesecons_switch:mesecon_switch_off", {
minetest.override_item("mesecons_switch:mesecon_switch_on", {
groups = {
dig_immediate=2,
- save_in_nodedb=1,
+ save_in_at_nodedb=1,
not_in_creative_inventory=1,
},
on_rightclick = function (pos, node)