Add a missing article to the sign action message (#2651)
authorHybridDog <3192173+HybridDog@users.noreply.github.com>
Wed, 29 Apr 2020 19:11:21 +0000 (21:11 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Apr 2020 19:11:21 +0000 (21:11 +0200)
mods/default/nodes.lua

index 0a7ba436ed0223a482312e6b7408b690d2096219..aa7d482feb8d116342573a32f78b13838a26b4e0 100644 (file)
@@ -2579,12 +2579,10 @@ local function register_sign(material, desc, def)
                sounds = def.sounds,
 
                on_construct = function(pos)
-                       --local n = minetest.get_node(pos)
                        local meta = minetest.get_meta(pos)
                        meta:set_string("formspec", "field[text;;${text}]")
                end,
                on_receive_fields = function(pos, formname, fields, sender)
-                       --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))
                        local player_name = sender:get_player_name()
                        if minetest.is_protected(pos, player_name) then
                                minetest.record_protection_violation(pos, player_name)
@@ -2598,8 +2596,8 @@ local function register_sign(material, desc, def)
                                minetest.chat_send_player(player_name, S("Text too long"))
                                return
                        end
-                       minetest.log("action", (player_name or "") .. " wrote \"" ..
-                               text .. "\" to sign at " .. minetest.pos_to_string(pos))
+                       minetest.log("action", player_name .. " wrote \"" .. text ..
+                               "\" to the sign at " .. minetest.pos_to_string(pos))
                        local meta = minetest.get_meta(pos)
                        meta:set_string("text", text)