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

This reverts commit 866020dfdb.

For some fucking reason this broke resending chunks in some cases (and
sending chunks at all in others). I don't have time to debug this right
now, so it's going to have to remain broken, infuriatingly enough.
This commit is contained in:
Dylan K. Taylor
2021-10-31 21:23:36 +00:00
parent 0f78a2b5ef
commit 3265d3f6b4
3 changed files with 12 additions and 10 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_SENDING())){
if(!$status->equals(UsedChunkStatus::REQUESTED())){
//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