fix(server): accept current world with territory
This commit is contained in:
parent
8ee73c70f0
commit
bd334442b5
|
@ -1,2 +1,4 @@
|
|||
/target
|
||||
/database.sqlite
|
||||
/database.sqlite-shm
|
||||
/database.sqlite-wal
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue