mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Make sure to post process chunks before they are sent to players
Some TEs need to be post processed after generation to be sent properly (chests)
This commit is contained in:
parent
3cfd74da9e
commit
cffc14631b
@ -3170,6 +3170,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ // the target chunk may not be owned by this region, but this should be resolved in the future
|
||||
+ break;
|
||||
+ }
|
||||
+ if (!chunk.isPostProcessingDone) {
|
||||
+ // not yet post-processed, need to do this so that tile entities can properly be sent to clients
|
||||
+ chunk.postProcessGeneration();
|
||||
+ // check if there was any recursive action
|
||||
+ if (this.removed || this.sendQueue.isEmpty() || this.sendQueue.firstLong() != pendingSend) {
|
||||
+ return;
|
||||
+ } // else: good to dequeue and send, fall through
|
||||
+ }
|
||||
+ this.sendQueue.dequeueLong();
|
||||
+
|
||||
+ this.sendChunk(pendingSendX, pendingSendZ);
|
||||
|
Loading…
Reference in New Issue
Block a user