Add missing infotext to nodes (#2477)

This commit is contained in:
An0n3m0us
2019-09-14 19:30:26 +01:00
committed by sfan5
parent 888383a812
commit 1f7ea89cb6
4 changed files with 35 additions and 19 deletions

View File

@ -333,7 +333,7 @@ function doors.register(name, def)
if def.protected then
meta:set_string("owner", pn)
meta:set_string("infotext", S("Owned by @1", pn))
meta:set_string("infotext", S("Steel Door") .. "\n" .. S("Owned by @1", pn))
end
if not (creative and creative.is_enabled_for and creative.is_enabled_for(pn)) then
@ -586,7 +586,7 @@ function doors.register_trapdoor(name, def)
local pn = placer:get_player_name()
local meta = minetest.get_meta(pos)
meta:set_string("owner", pn)
meta:set_string("infotext", S("Owned by @1", pn))
meta:set_string("infotext", S("Steel Trapdoor") .. "\n" .. S("Owned by @1", pn))
return (creative and creative.is_enabled_for and creative.is_enabled_for(pn))
end