diff options
author | orwell <orwell@bleipb.de> | 2024-07-20 18:02:33 +0200 |
---|---|---|
committer | orwell <orwell@bleipb.de> | 2024-07-20 18:02:33 +0200 |
commit | baa50c03920fd0a563fce09929f3d56c3374e8bd (patch) | |
tree | b7a8cf7b94952a7db823cab1de6860e57fd53c25 /advtrains/trackplacer.lua | |
parent | c145e5db7473a0baab6438d7c2ed9616948d8387 (diff) | |
download | advtrains-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.lua | 8 |
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 |