diff options
Diffstat (limited to 'test-client/visual.ts')
-rw-r--r-- | test-client/visual.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test-client/visual.ts b/test-client/visual.ts index c5f34c1c..80c36da2 100644 --- a/test-client/visual.ts +++ b/test-client/visual.ts @@ -147,7 +147,12 @@ function draw_player(player: PlayerData) { if (player.boosting) ctx.scale(1.3, 1.3) draw_character(player.class, player.character) ctx.restore() - if (player.item) draw_item(player.item) + ctx.save() + for (const h of player.hands) { + if (h.item) draw_item(h.item) + ctx.translate(0.2, 0.0) + } + ctx.restore() } function draw_player_nametag(player: PlayerData) { |