Workaround for sign regression with 5.12.0
Some checks failed
luacheck / luacheck (push) Has been cancelled
test / test (push) Has been cancelled

---------

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
This commit is contained in:
ZenonSeth 2025-05-28 17:53:44 +01:00 committed by GitHub
parent 838ad60ad0
commit a6bf9dd526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)