Skip to content

Commit 50220fd

Browse files
committed
swap
1 parent 19c6eee commit 50220fd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

common/src/main/java/com/viaversion/viabackwards/protocol/v1_21_5to1_21_4/rewriter/BlockItemPacketRewriter1_21_5.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,13 +134,13 @@ public void registerPackets() {
134134
protocol.registerClientbound(ClientboundPackets1_21_5.CHUNKS_BIOMES, wrapper -> {
135135
final EntityTracker tracker = protocol.getEntityRewriter().tracker(wrapper.user());
136136
final int globalPaletteBiomeBits = ceilLog2(tracker.biomesSent());
137-
final Type<DataPalette[]> biomesType = new ChunkBiomesType1_19_4(tracker.currentWorldSectionHeight(), globalPaletteBiomeBits);
138-
final Type<DataPalette[]> newBiomesType = new ChunkBiomesType1_21_5(tracker.currentWorldSectionHeight(), globalPaletteBiomeBits);
137+
final Type<DataPalette[]> biomesType = new ChunkBiomesType1_21_5(tracker.currentWorldSectionHeight(), globalPaletteBiomeBits);
138+
final Type<DataPalette[]> newBiomesType = new ChunkBiomesType1_19_4(tracker.currentWorldSectionHeight(), globalPaletteBiomeBits);
139139

140140
final int size = wrapper.passthrough(Types.VAR_INT);
141141
for (int i = 0; i < size; i++) {
142142
wrapper.passthrough(Types.CHUNK_POSITION);
143-
wrapper.passthroughAndMap(newBiomesType, biomesType);
143+
wrapper.passthroughAndMap(biomesType, newBiomesType);
144144
}
145145
});
146146

0 commit comments

Comments
 (0)