aboutsummaryrefslogtreecommitdiff
path: root/server/editor
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2025-10-19 00:38:09 +0200
committermetamuffin <metamuffin@disroot.org>2025-10-19 00:38:09 +0200
commit62d918e5feeaf5b3add982a5baaffb201a1f2ece (patch)
treeb14a0fa01f9df692592bf5d16543f43b6eb933d6 /server/editor
parent6b156bea343a0fd9a043dcfe7113986855a89aab (diff)
downloadhurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar
hurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar.bz2
hurrycurry-62d918e5feeaf5b3add982a5baaffb201a1f2ece.tar.zst
Implement interaction with other players through id instead of tile pos
Diffstat (limited to 'server/editor')
-rw-r--r--server/editor/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/editor/src/main.rs b/server/editor/src/main.rs
index dc9c6735..be0fcbc5 100644
--- a/server/editor/src/main.rs
+++ b/server/editor/src/main.rs
@@ -305,7 +305,7 @@ impl State {
}
PacketS::Interact {
hand: Hand(1),
- pos: Some(_),
+ target: Some(_),
..
} => {
self.tile.0 += 1;
@@ -317,7 +317,7 @@ impl State {
}
PacketS::Interact {
hand: Hand(0),
- pos: Some(_),
+ target: Some(_),
..
} => {
let bpos = self.movement.position.floor().as_ivec2();