Skip to content

Commit

Permalink
fix(base_placeable): Prevent error on pickup fail (#1697)
Browse files Browse the repository at this point in the history
We call `LANG.Msg` on the client which doesn't use the first parameter
to address a player. This shifts all the parameters to the wrong places.

Fixes #1695
  • Loading branch information
Histalek authored Dec 10, 2024
1 parent c60ac9d commit ad5d5f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ All notable changes to TTT2 will be documented here. Inspired by [keep a changel
- Fixed client error for a not fully initialized client (by @Histalek)
- Fixed the targetID corpse hint not respecting `ttt_identify_body_woconfirm` (by @Histalek)
- Fixed the beacon not being properly translated when placed (by @Histalek)
- Fixed an error when trying to pickup a placed equipment (e.g. beacon) (by @Histalek)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ if CLIENT then
end

if not self:PlayerCanPickupWeapon(client) then
LANG.Msg(client, "pickup_fail", nil, MSG_MSTACK_WARN)
LANG.Msg("pickup_fail", nil, MSG_MSTACK_WARN)

self:EmitSound(soundDeny)

Expand Down

0 comments on commit ad5d5f5

Please sign in to comment.