Fix sometimes untranslated locked chest infotext

This commit is contained in:
Wuzzy 2022-06-16 14:14:56 +02:00
parent 556a30b20d
commit b80bc6f5ca

View File

@ -268,7 +268,7 @@ minetest.register_node(
meta:set_int("lock_cracked", 0) meta:set_int("lock_cracked", 0)
local owner = meta:get_string("lock_owner") local owner = meta:get_string("lock_owner")
if owner == "" then if owner == "" then
meta:set_string("infotext", INFOTEXT_PUBLIC) meta:set_string("infotext", S(INFOTEXT_PUBLIC))
else else
meta:set_string("infotext", S(INFOTEXT_OWNED, owner)) meta:set_string("infotext", S(INFOTEXT_OWNED, owner))
end end