Fix trapdoor infotext to correctly describe the type of trapdoor

This commit is contained in:
sfan5 2019-09-20 20:56:20 +02:00 committed by GitHub
parent 09bed49b5a
commit 3f7cd062c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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("Steel Trapdoor") .. "\n" .. S("Owned by @1", pn))
meta:set_string("infotext", def.description .. "\n" .. S("Owned by @1", pn))
return (creative and creative.is_enabled_for and creative.is_enabled_for(pn))
end