mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-07-04 05:37:13 -04:00
Update nodes.lua
This commit is contained in:
parent
5b19b209d7
commit
2b4fcea9f5
1 changed files with 3 additions and 1 deletions
|
@ -2604,12 +2604,14 @@ local function register_sign(material, desc, def)
|
|||
meta:set_string("formspec", "field[text;;${text}]")
|
||||
end,
|
||||
on_receive_fields = function(pos, formname, fields, sender)
|
||||
if not fields.quit then
|
||||
return
|
||||
end
|
||||
local player_name = sender:get_player_name()
|
||||
if minetest.is_protected(pos, player_name) then
|
||||
minetest.record_protection_violation(pos, player_name)
|
||||
return
|
||||
end
|
||||
if not fields.quit then return end
|
||||
local text = fields.text
|
||||
if not text then
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue