Skip to content

Commit 4a7ab66

Browse files
committed
build: 25w37a
1 parent 746c1cf commit 4a7ab66

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

c2me-rewrites-chunk-serializer/src/main/java/com/ishland/c2me/rewrites/chunk_serializer/common/ChunkDataSerializer.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
import net.minecraft.block.Block;
1313
import net.minecraft.block.BlockState;
1414
import net.minecraft.block.Blocks;
15-
import net.minecraft.class_11897;
1615
import net.minecraft.nbt.NbtCompound;
1716
import net.minecraft.nbt.NbtElement;
1817
import net.minecraft.nbt.NbtList;
@@ -40,6 +39,7 @@
4039
import net.minecraft.world.chunk.Chunk;
4140
import net.minecraft.world.chunk.ChunkType;
4241
import net.minecraft.world.chunk.PalettedContainer;
42+
import net.minecraft.world.chunk.PalettesFactory;
4343
import net.minecraft.world.chunk.ReadableContainer;
4444
import net.minecraft.world.chunk.SerializedChunk;
4545
import net.minecraft.world.chunk.UpgradeData;
@@ -183,7 +183,7 @@ public static void write(SerializedChunk serializable, NbtWriter writer) {
183183

184184
List<SerializedChunk.SectionData> sectionData = serializable.sectionData();
185185

186-
class_11897 containerFactory = serializable.containerFactory();
186+
PalettesFactory containerFactory = serializable.containerFactory();
187187

188188
checkLightFlag(serializable.lightCorrect(), writer);
189189

@@ -261,7 +261,7 @@ private static void writeSectionData(
261261
NbtWriter writer,
262262
ChunkPos chunkPos,
263263
List<SerializedChunk.SectionData> sectionData,
264-
class_11897 containerFactory
264+
PalettesFactory containerFactory
265265
) {
266266
writeSectionDataVanilla(writer, chunkPos, sectionData, containerFactory);
267267
}
@@ -273,7 +273,7 @@ private static void writeSectionDataVanilla(
273273
NbtWriter writer,
274274
ChunkPos chunkPos,
275275
List<SerializedChunk.SectionData> sectionData,
276-
class_11897 containerFactory
276+
PalettesFactory containerFactory
277277
) {
278278
long sectionsStart = writer.startList(STRING_SECTIONS, NbtElement.COMPOUND_TYPE);
279279
int sectionCount = 0;
@@ -328,7 +328,7 @@ private static void writeSectionDataVanilla(
328328
* {@link Blocks#AIR}{@code .getDefaultState()} as defaultValue
329329
*/
330330
@SuppressWarnings("unchecked")
331-
private static void writeBlockStates(NbtWriter writer, PalettedContainer<BlockState> blockStateContainer, class_11897 containerFactory) {
331+
private static void writeBlockStates(NbtWriter writer, PalettedContainer<BlockState> blockStateContainer, PalettesFactory containerFactory) {
332332
writer.startCompound(STRING_BLOCK_STATES);
333333
// todo can this be optimized?
334334
// todo: does this conflict with lithium by any chance?
@@ -365,7 +365,7 @@ private static void writeBlockStates(NbtWriter writer, PalettedContainer<BlockSt
365365
* {@link PalettedContainer.PaletteProvider#BIOME} as paletteProvider,
366366
* {@link BiomeKeys#PLAINS} as defaultValue
367367
*/
368-
private static void writeBiomes(NbtWriter writer, ReadableContainer<RegistryEntry<Biome>> biomeContainer, class_11897 containerFactory) {
368+
private static void writeBiomes(NbtWriter writer, ReadableContainer<RegistryEntry<Biome>> biomeContainer, PalettesFactory containerFactory) {
369369
writer.startCompound(STRING_BIOMES);
370370
// todo can this be optimized?
371371
// todo: does this conflict with lithium by any chance?

c2me-rewrites-chunk-system/src/main/java/com/ishland/c2me/rewrites/chunksystem/common/statuses/ReadFromDisk.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public Completable upgradeToThis(ChunkLoadingContext context, Cancellable cancel
116116
final ServerWorld world = ((IThreadedAnvilChunkStorage) context.tacs()).getWorld();
117117
// blending
118118
final ChunkPos pos = context.holder().getKey();
119-
protoChunk = protoChunk != null ? protoChunk : new ProtoChunk(pos, UpgradeData.NO_UPGRADE_DATA, world, world.method_74142(), null);
119+
protoChunk = protoChunk != null ? protoChunk : new ProtoChunk(pos, UpgradeData.NO_UPGRADE_DATA, world, world.getPalettesFactory(), null);
120120
if (protoChunk.getBelowZeroRetrogen() != null || protoChunk.getStatus().getChunkType() == ChunkType.PROTOCHUNK) {
121121
ProtoChunk finalProtoChunk = protoChunk;
122122
return Single.defer(() -> Single.fromCompletionStage(BlendingInfoUtil.getBlendingInfos(((IVersionedChunkStorage) context.tacs()).getWorker(), pos)))
@@ -133,7 +133,7 @@ public Completable upgradeToThis(ChunkLoadingContext context, Cancellable cancel
133133
.map(optional -> optional.map(nbtCompound -> {
134134
try (var ignored = ThreadInstrumentation.getCurrent().begin(new ChunkTaskWork(context, this, true))) {
135135
ServerWorld world = ((IThreadedAnvilChunkStorage) context.tacs()).getWorld();
136-
SerializedChunk chunkSerializer = SerializedChunk.fromNbt(world, world.method_74142(), nbtCompound);
136+
SerializedChunk chunkSerializer = SerializedChunk.fromNbt(world, world.getPalettesFactory(), nbtCompound);
137137
if (chunkSerializer == null) {
138138
LOGGER.error("Chunk file at {} is missing level data, skipping", context.holder().getKey());
139139
}
@@ -150,7 +150,7 @@ public Completable upgradeToThis(ChunkLoadingContext context, Cancellable cancel
150150
protected @NotNull ProtoChunk createEmptyProtoChunk(ChunkLoadingContext context) {
151151
try (var ignored = ThreadInstrumentation.getCurrent().begin(new ChunkTaskWork(context, this, true))) {
152152
final ServerWorld world = ((IThreadedAnvilChunkStorage) context.tacs()).getWorld();
153-
return new ProtoChunk(context.holder().getKey(), UpgradeData.NO_UPGRADE_DATA, world, world.method_74142(), null);
153+
return new ProtoChunk(context.holder().getKey(), UpgradeData.NO_UPGRADE_DATA, world, world.getPalettesFactory(), null);
154154
}
155155
}
156156

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ org.gradle.warning.mode=all
55
#org.gradle.configuration-cache=true
66
# Fabric Properties
77
# check these on https://fabricmc.net/versions.html
8-
minecraft_version=25w36b
9-
yarn_mappings=25w36b+build.1
8+
minecraft_version=25w37a
9+
yarn_mappings=25w37a+build.1
1010
loader_version=0.17.2
1111
fabric_version=0.132.0+1.21.9
1212
# Mod Properties

0 commit comments

Comments
 (0)