Skip to content

Commit

Permalink
Fix trapdoor infotext to correctly describe the type of trapdoor
Browse files Browse the repository at this point in the history
  • Loading branch information
sfan5 committed Sep 20, 2019
1 parent 09bed49 commit 3f7cd06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mods/doors/init.lua
Expand Up @@ -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
Expand Down

0 comments on commit 3f7cd06

Please sign in to comment.