From 7324a5c6cf1a5916f049106bf78088ee9e740a60 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Tue, 24 Apr 2018 22:52:14 +0300 Subject: fixed dropped items for active switches --- init.lua | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 79e2199..015c58a 100644 --- a/init.lua +++ b/init.lua @@ -129,7 +129,8 @@ minetest.register_node("railroad_paraphernalia:switch_with_arrow_act", { gain = 0.3, }) mesecon.receptor_off(pos, switch_get_rules(minetest.get_node(pos).param2)) - end + end, + drop = "railroad_paraphernalia:switch_with_arrow" }) minetest.register_craft({ @@ -228,7 +229,8 @@ minetest.register_node("railroad_paraphernalia:switch_with_lamp_act", { gain = 0.3, }) mesecon.receptor_off(pos, switch_get_rules(minetest.get_node(pos).param2)) - end + end, + drop = "railroad_paraphernalia:switch_with_lamp" }) @@ -394,7 +396,8 @@ minetest.register_node("railroad_paraphernalia:track_blocker_act", { gain = 0.3, }) mesecon.receptor_off(pos, switch_get_rules(minetest.get_node(pos).param2)) - end + end, + drop = "railroad_paraphernalia:track_blocker" }) minetest.register_craft({ @@ -472,7 +475,8 @@ minetest.register_node("railroad_paraphernalia:shunting_signal_act", { max_hear_distance = 20, gain = 0.3, }) - end + end, + drop = "railroad_paraphernalia:shunting_signal" }) -- cgit v1.2.3