mirror of
https://github.com/minetest/minetest_game.git
synced 2025-01-03 11:57:32 +01:00
Add a missing article to the sign action message (#2651)
This commit is contained in:
parent
33eb7cee2a
commit
190f7fdac9
@ -2579,12 +2579,10 @@ local function register_sign(material, desc, def)
|
|||||||
sounds = def.sounds,
|
sounds = def.sounds,
|
||||||
|
|
||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
--local n = minetest.get_node(pos)
|
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec", "field[text;;${text}]")
|
meta:set_string("formspec", "field[text;;${text}]")
|
||||||
end,
|
end,
|
||||||
on_receive_fields = function(pos, formname, fields, sender)
|
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()
|
local player_name = sender:get_player_name()
|
||||||
if minetest.is_protected(pos, player_name) then
|
if minetest.is_protected(pos, player_name) then
|
||||||
minetest.record_protection_violation(pos, player_name)
|
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"))
|
minetest.chat_send_player(player_name, S("Text too long"))
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
minetest.log("action", (player_name or "") .. " wrote \"" ..
|
minetest.log("action", player_name .. " wrote \"" .. text ..
|
||||||
text .. "\" to sign at " .. minetest.pos_to_string(pos))
|
"\" to the sign at " .. minetest.pos_to_string(pos))
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("text", text)
|
meta:set_string("text", text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user