diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-27 20:14:33 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-27 20:14:39 +0200 |
commit | df2b0841d27034629ae00f55c98d0cbc40011d7a (patch) | |
tree | ad3655431664ae6eaf5eadec4a1abe7a849a34f6 /client/game.gd | |
parent | ee2753c627a3cf8971a4bd99d8ef86ad1567dec0 (diff) | |
download | hurrycurry-df2b0841d27034629ae00f55c98d0cbc40011d7a.tar hurrycurry-df2b0841d27034629ae00f55c98d0cbc40011d7a.tar.bz2 hurrycurry-df2b0841d27034629ae00f55c98d0cbc40011d7a.tar.zst |
set initial item position when spawning in han, fix #149
Diffstat (limited to 'client/game.gd')
-rw-r--r-- | client/game.gd | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/client/game.gd b/client/game.gd index a296706d..c3b34332 100644 --- a/client/game.gd +++ b/client/game.gd @@ -168,6 +168,7 @@ func handle_packet(p): else: var pl: Player = players[p.location.player] var i = ItemFactory.produce(item_names[p.item], pl.hand_base) + i.position = pl.hand_base.global_position add_child(i) i.name = item_names[p.item] pl.set_item(i) |