Remove sync loading of spawn chunks

Adding the tickets is sufficient
This commit is contained in:
Jason Penilla 2021-06-15 03:13:30 -07:00
parent 802eb82975
commit a4bbe926b2

View File

@ -132,10 +132,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // left
+ 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) {
+ // In order to respect vanilla behavior, which is ensuring everything but the spawn border can tick, we added tickets