fix(server): accept current world with territory

This commit is contained in:
Anna 2023-10-05 00:37:25 -04:00
parent 8ee73c70f0
commit bd334442b5
Signed by: anna
GPG Key ID: D0943384CD9F87D1
2 changed files with 5 additions and 3 deletions

2
server/.gitignore vendored
View File

@ -1,2 +1,4 @@
/target
/database.sqlite
/database.sqlite-shm
/database.sqlite-wal

View File

@ -60,7 +60,7 @@ async fn upload(
player.name,
player.world,
data.territory,
player.current_world,
data.world,
player.x,
player.y,
player.z,
@ -73,7 +73,7 @@ async fn upload(
player.max_hp,
data.territory,
player.current_world,
data.world,
player.x,
player.y,
player.z,
@ -96,6 +96,7 @@ async fn upload(
#[derive(Deserialize)]
struct Update {
territory: u32,
world: u32,
players: Vec<PlayerInfo>,
}
@ -103,7 +104,6 @@ struct Update {
struct PlayerInfo {
name: String,
world: u32,
current_world: u32,
x: f32,
y: f32,
z: f32,