summaryrefslogtreecommitdiff
path: root/util.lua
diff options
context:
space:
mode:
Diffstat (limited to 'util.lua')
-rw-r--r--util.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/util.lua b/util.lua
index b80fd05..73c72dc 100644
--- a/util.lua
+++ b/util.lua
@@ -99,6 +99,8 @@ digtron.move_node = function(pos, newpos)
newinv:set_list("main", list)
newmeta:set_string("formspec", oldformspec)
+ newmeta:set_string("triggering_player", oldmeta:get_string("triggering_player")) -- for auto-controllers
+
newmeta:set_int("offset", oldmeta:get_int("offset"))
newmeta:set_int("period", oldmeta:get_int("period"))
newmeta:set_int("build_facing", oldmeta:get_int("build_facing"))