Player: do not re-request the same ungenerated chunks multiple times

this doesn't affect chunk resends, since they'll be kicked back to NEEDED, which is detected by orderChunks().
This commit is contained in:
Dylan K. Taylor
2021-10-31 16:43:32 +00:00
parent c580bb2434
commit 866020dfdb
3 changed files with 10 additions and 12 deletions

View File

@ -924,7 +924,7 @@ class NetworkSession{
$this->logger->debug("Tried to send no-longer-active chunk $chunkX $chunkZ in world " . $world->getFolderName());
return;
}
if(!$status->equals(UsedChunkStatus::REQUESTED())){
if(!$status->equals(UsedChunkStatus::REQUESTED_SENDING())){
//TODO: make this an error
//this could be triggered due to the shitty way that chunk resends are handled
//right now - not because of the spammy re-requesting, but because the chunk status reverts