biome fixer in structure spawner should use correct biome

This commit is contained in:
gnembon committed 2019-09-06 12:58:40 -03:00
1 parent 8747f18836
commit e613593f41
2 files changed
+2 -2

No files matched your search

@@ -115,7 +115,7 @@ public abstract class StructureFeatureMixin implements StructureFeatureInterface
return structurestart;
}
}
Biome biome_1 = generator.getBiomeSource().getBiome(chunkpos.getStartX() + 9, 0, chunkpos.getStartZ() + 9);
Biome biome_1 = generator.getBiomeSource().getBiome((chunkpos.getStartX() + 9) >> 2, 0, (chunkpos.getStartZ() + 9) >> 2 );
StructureStart structurestart1 = getStructureStartFactory().create((StructureFeature)(Object)this, chunkpos.x, chunkpos.z, MutableIntBoundingBox.empty(),0,generator.getSeed());
structurestart1.initialize(generator, ((ServerWorld)worldIn).getStructureManager() , chunkpos.x, chunkpos.z, biome_1);
structurestart = structurestart1.hasChildren() ? structurestart1 : StructureStart.DEFAULT;
@@ -29,6 +29,6 @@ public class class_4548_getBiomeArrayMixin implements class_4548Interface
int int_4 = (pos.getX() >> 2) & field_20650;
int int_5 = MathHelper.clamp(seaLevel, 0, field_20651);
int int_6 = (pos.getZ() >> 2) & field_20650;
field_20654[int_5 << field_20652 + field_20652 | int_6 << field_20652 | int_4] = what;
field_20654[(int_5 << (field_20652 + field_20652)) | (int_6 << field_20652) | int_4] = what;
}
}