aboutsummaryrefslogtreecommitdiff
path: root/advtrains/trackplacer.lua
diff options
context:
space:
mode:
authororwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
committerorwell <orwell@bleipb.de>2024-07-20 18:02:33 +0200
commitbaa50c03920fd0a563fce09929f3d56c3374e8bd (patch)
treeb7a8cf7b94952a7db823cab1de6860e57fd53c25 /advtrains/trackplacer.lua
parentc145e5db7473a0baab6438d7c2ed9616948d8387 (diff)
downloadadvtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.gz
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.tar.bz2
advtrains-baa50c03920fd0a563fce09929f3d56c3374e8bd.zip
ARS supports triggering distant signal, other bugfixes
Diffstat (limited to 'advtrains/trackplacer.lua')
-rw-r--r--advtrains/trackplacer.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua
index e6111dc..597e8ec 100644
--- a/advtrains/trackplacer.lua
+++ b/advtrains/trackplacer.lua
@@ -288,8 +288,8 @@ minetest.register_craftitem("advtrains:trackworker",{
advtrains.ndb.swap_node(pos, new_node)
end
end,
- on_use=function(itemstack, user, pointed_thing)
- local name = user:get_player_name()
+ on_use=function(itemstack, player, pointed_thing)
+ local name = player:get_player_name()
if not name then
return
end
@@ -305,7 +305,7 @@ minetest.register_craftitem("advtrains:trackworker",{
local ndef = minetest.registered_nodes[node.name]
if not ndef.advtrains or not ndef.advtrains.trackworker_next_var then
- minetest.chat_send_player(placer:get_player_name(), attrans("This node can't be changed using the trackworker!"))
+ minetest.chat_send_player(name, attrans("This node can't be changed using the trackworker!"))
return
end
@@ -318,7 +318,7 @@ minetest.register_craftitem("advtrains:trackworker",{
if reason then
str = str .. " " .. reason
end
- minetest.chat_send_player(placer:get_player_name(), str)
+ minetest.chat_send_player(name, str)
return
end
end