| 
									
										
										
										
											2019-07-22 16:03:02 +10:00
										 |  |  | --- a/net/minecraft/server/ChunkGenerator.java
 | 
					
						
							|  |  |  | +++ b/net/minecraft/server/ChunkGenerator.java
 | 
					
						
							| 
									
										
										
										
											2019-12-11 09:00:00 +11:00
										 |  |  | @@ -147,6 +147,18 @@
 | 
					
						
							|  |  |  |                  StructureStart structurestart1 = StructureStart.a; | 
					
						
							|  |  |  |                  BiomeBase biomebase = biomemanager.a(new BlockPosition(chunkcoordintpair.d() + 9, 0, chunkcoordintpair.e() + 9)); | 
					
						
							| 
									
										
										
										
											2019-07-22 16:03:02 +10:00
										 |  |  |   | 
					
						
							|  |  |  | +                // CraftBukkit start
 | 
					
						
							|  |  |  | +                if (structuregenerator == WorldGenerator.STRONGHOLD) {
 | 
					
						
							|  |  |  | +                    synchronized (structuregenerator) {
 | 
					
						
							| 
									
										
										
										
											2019-12-11 09:00:00 +11:00
										 |  |  | +                        if (structuregenerator.a(biomemanager, chunkgenerator, seededrandom, chunkcoordintpair.x, chunkcoordintpair.z, biomebase)) {
 | 
					
						
							|  |  |  | +                            StructureStart structurestart2 = structuregenerator.a().create(structuregenerator, chunkcoordintpair.x, chunkcoordintpair.z, StructureBoundingBox.a(), i, chunkgenerator.getSeed());
 | 
					
						
							| 
									
										
										
										
											2019-07-22 16:03:02 +10:00
										 |  |  | +
 | 
					
						
							| 
									
										
										
										
											2019-12-11 09:00:00 +11:00
										 |  |  | +                            structurestart2.a(this, definedstructuremanager, chunkcoordintpair.x, chunkcoordintpair.z, biomebase);
 | 
					
						
							|  |  |  | +                            structurestart1 = structurestart2.e() ? structurestart2 : StructureStart.a;
 | 
					
						
							| 
									
										
										
										
											2019-07-22 16:03:02 +10:00
										 |  |  | +                        }
 | 
					
						
							|  |  |  | +                    }
 | 
					
						
							|  |  |  | +                } else
 | 
					
						
							|  |  |  | +                // CraftBukkit end
 | 
					
						
							| 
									
										
										
										
											2019-12-11 09:00:00 +11:00
										 |  |  |                  if (structuregenerator.a(biomemanager, chunkgenerator, seededrandom, chunkcoordintpair.x, chunkcoordintpair.z, biomebase)) { | 
					
						
							|  |  |  |                      StructureStart structurestart2 = structuregenerator.a().create(structuregenerator, chunkcoordintpair.x, chunkcoordintpair.z, StructureBoundingBox.a(), i, chunkgenerator.getSeed()); | 
					
						
							|  |  |  |   |