mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Remove sync loading of spawn chunks
Adding the tickets is sufficient
This commit is contained in:
parent
802eb82975
commit
a4bbe926b2
@ -132,10 +132,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
+ // left
|
+ // left
|
||||||
+ chunkproviderserver.addRegionTicket(TicketType.START, new ChunkPos(spawn.add(-radiusInBlocks, 0, z)), 1, Unit.INSTANCE); // level 32
|
+ chunkproviderserver.addRegionTicket(TicketType.START, new ChunkPos(spawn.add(-radiusInBlocks, 0, z)), 1, Unit.INSTANCE); // level 32
|
||||||
+ }
|
+ }
|
||||||
+
|
|
||||||
+ MCUtil.getSpiralOutChunks(spawn, radiusInBlocks >> 4).forEach(pair -> {
|
|
||||||
+ getChunkSource().getChunkAtMainThread(pair.x, pair.z);
|
|
||||||
+ });
|
|
||||||
+ }
|
+ }
|
||||||
+ public void removeTicketsForSpawn(int radiusInBlocks, BlockPos spawn) {
|
+ public void removeTicketsForSpawn(int radiusInBlocks, BlockPos spawn) {
|
||||||
+ // In order to respect vanilla behavior, which is ensuring everything but the spawn border can tick, we added tickets
|
+ // In order to respect vanilla behavior, which is ensuring everything but the spawn border can tick, we added tickets
|
||||||
|
Loading…
Reference in New Issue
Block a user