summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2018-09-20 17:29:35 -0500
committercheapie <no-email-for-you@example.com>2018-09-20 17:29:35 -0500
commit9e272a414e1aafaae573c87cf9eeb8c5a7d543c0 (patch)
tree0e8b9b77cef629c86b1315fa8902f115cf4a3e68
parente23a308a1fe0c11ee45332c074ef2351f98c6e3d (diff)
downloaddigistuff-9e272a414e1aafaae573c87cf9eeb8c5a7d543c0.tar
digistuff-9e272a414e1aafaae573c87cf9eeb8c5a7d543c0.tar.gz
digistuff-9e272a414e1aafaae573c87cf9eeb8c5a7d543c0.tar.bz2
digistuff-9e272a414e1aafaae573c87cf9eeb8c5a7d543c0.tar.xz
digistuff-9e272a414e1aafaae573c87cf9eeb8c5a7d543c0.zip
Send the name of the player that interacted with the touchscreen
-rw-r--r--init.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/init.lua b/init.lua
index 01aa586..2b1a52e 100644
--- a/init.lua
+++ b/init.lua
@@ -86,6 +86,7 @@ digistuff.ts_on_receive_fields = function (pos, formname, fields, sender)
digistuff.update_ts_formspec(pos)
end
else
+ fields.clicker = sender:get_player_name()
digiline:receptor_send(pos, digiline.rules.default, setchan, fields)
end
end