mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-05-31 19:16:26 -04:00
Workaround for sign regression with 5.12.0
--------- Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
This commit is contained in:
parent
838ad60ad0
commit
a6bf9dd526
1 changed files with 3 additions and 0 deletions
|
@ -2604,6 +2604,9 @@ 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 -- workaround for https://github.com/luanti-org/luanti/issues/16187
|
||||
end
|
||||
local player_name = sender:get_player_name()
|
||||
if minetest.is_protected(pos, player_name) then
|
||||
minetest.record_protection_violation(pos, player_name)
|
||||
|
|
Loading…
Add table
Reference in a new issue