Skip to content

Commit 913cc2a

Browse files
authored
Make getPrintName give "nice" text (#2252)
1 parent 3ce9420 commit 913cc2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/starfall/libs_sh/weapons.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ if CLIENT then
145145
-- @client
146146
-- @return string Display name of weapon
147147
function weapon_methods:getPrintName()
148-
return Wep_GetPrintName(getwep(self))
148+
return language.GetPhrase(string.sub(Wep_GetPrintName(getwep(self)), 2))
149149
end
150150

151151
--- Returns if the weapon is carried by the local player.

0 commit comments

Comments
 (0)