summaryrefslogtreecommitdiff
path: root/piston.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2020-04-30 00:44:04 -0500
committercheapie <no-email-for-you@example.com>2020-04-30 00:44:04 -0500
commit7f5eaac5c35d4c26d566b39a45e93c4582712b90 (patch)
tree9171eab3d223ed1dd321f789eaad84c02583b518 /piston.lua
parent69a9304751cfdf784696212fcf4834eba584c584 (diff)
downloaddigistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.gz
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.bz2
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.tar.xz
digistuff-7f5eaac5c35d4c26d566b39a45e93c4582712b90.zip
Add channel copier
Diffstat (limited to 'piston.lua')
-rw-r--r--piston.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/piston.lua b/piston.lua
index 070da43..bd8860b 100644
--- a/piston.lua
+++ b/piston.lua
@@ -66,6 +66,7 @@ minetest.register_node("digistuff:piston", {
local meta = minetest.get_meta(pos)
if fields.channel then meta:set_string("channel",fields.channel) end
end,
+ _digistuff_channelcopier_fieldname = "channel",
digiline = {
wire = {
rules = {
@@ -124,6 +125,7 @@ minetest.register_node("digistuff:piston_ext", {
{-0.5,-0.5,-1.5,0.5,0.5,0.5},
}
},
+ _digistuff_channelcopier_fieldname = "channel",
on_rotate = function() return false end,
on_receive_fields = function(pos, formname, fields, sender)
local name = sender:get_player_name()