mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Disabled informing clients of chunks temporarily
Former-commit-id: ab964ebfdae55e1fcf1002d7e7622d58e538c83b
This commit is contained in:
parent
3112486005
commit
bbc5aa1b0d
@ -149,10 +149,12 @@ impl Server {
|
||||
// TODO: Distance check
|
||||
// if self.state.terrain().key_pos(key)
|
||||
|
||||
/*
|
||||
self.clients.notify(entity, ServerMsg::TerrainChunkUpdate {
|
||||
key,
|
||||
chunk: Box::new(chunk.clone()),
|
||||
});
|
||||
*/
|
||||
}
|
||||
|
||||
self.state.insert_chunk(key, chunk);
|
||||
@ -254,10 +256,10 @@ impl Server {
|
||||
state.write_component(entity, dir);
|
||||
},
|
||||
ClientMsg::TerrainChunkRequest { key } => match state.terrain().get_key(key) {
|
||||
Some(chunk) => client.postbox.send_message(ServerMsg::TerrainChunkUpdate {
|
||||
Some(chunk) => {}, /*client.postbox.send_message(ServerMsg::TerrainChunkUpdate {
|
||||
key,
|
||||
chunk: Box::new(chunk.clone()),
|
||||
}),
|
||||
}),*/
|
||||
None => requested_chunks.push(key),
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user