Mirror von
https://github.com/ViaVersion/ViaBackwards.git
synchronisiert 2025-01-12 07:56:15 +01:00
4.1.0 Release
Dieser Commit ist enthalten in:
Ursprung
e70f595f76
Commit
8d35d16575
@ -11,7 +11,7 @@ Supported Versions
|
|||||||
**Green** = ViaVersion\
|
**Green** = ViaVersion\
|
||||||
**Purple** = ViaBackwards addition
|
**Purple** = ViaBackwards addition
|
||||||
|
|
||||||
![supported_versions](https://i.imgur.com/MGmk8Yp.png)
|
![supported_versions](https://i.imgur.com/O2KAFFL.png)
|
||||||
|
|
||||||
Releases / Dev Builds
|
Releases / Dev Builds
|
||||||
-
|
-
|
||||||
|
@ -5,7 +5,7 @@ plugins {
|
|||||||
|
|
||||||
allprojects {
|
allprojects {
|
||||||
group = "com.viaversion"
|
group = "com.viaversion"
|
||||||
version = "4.1.0-1.18-pre5-SNAPSHOT"
|
version = "4.1.0"
|
||||||
description = "Allow older clients to join newer server versions."
|
description = "Allow older clients to join newer server versions."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ import java.util.logging.Logger;
|
|||||||
|
|
||||||
public interface ViaBackwardsPlatform {
|
public interface ViaBackwardsPlatform {
|
||||||
|
|
||||||
String MINIMUM_VV_VERSION = "4.0.1";
|
String MINIMUM_VV_VERSION = "4.1.0";
|
||||||
String IMPL_VERSION = "$IMPL_VERSION";
|
String IMPL_VERSION = "$IMPL_VERSION";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -161,15 +161,23 @@ public final class BlockItemPackets1_18 extends ItemRewriter<Protocol1_17_1To1_1
|
|||||||
MathUtil.ceilLog2(tracker.biomesSent()));
|
MathUtil.ceilLog2(tracker.biomesSent()));
|
||||||
final Chunk oldChunk = wrapper.read(chunkType);
|
final Chunk oldChunk = wrapper.read(chunkType);
|
||||||
final ChunkSection[] sections = oldChunk.getSections();
|
final ChunkSection[] sections = oldChunk.getSections();
|
||||||
|
final BitSet mask = new BitSet(oldChunk.getSections().length);
|
||||||
final int[] biomeData = new int[sections.length * ChunkSection.BIOME_SIZE];
|
final int[] biomeData = new int[sections.length * ChunkSection.BIOME_SIZE];
|
||||||
int biomeIndex = 0;
|
int biomeIndex = 0;
|
||||||
for (final ChunkSection section : sections) {
|
for (int j = 0; j < sections.length; j++) {
|
||||||
// TODO remove empty sections (always initialized because of biomes in 1.18)?
|
final ChunkSection section = sections[j];
|
||||||
// Write biome palette into biome array
|
// Write biome palette into biome array
|
||||||
final DataPalette biomePalette = section.palette(PaletteType.BIOMES);
|
final DataPalette biomePalette = section.palette(PaletteType.BIOMES);
|
||||||
for (int i = 0; i < ChunkSection.BIOME_SIZE; i++) {
|
for (int i = 0; i < ChunkSection.BIOME_SIZE; i++) {
|
||||||
biomeData[biomeIndex++] = biomePalette.idAt(i);
|
biomeData[biomeIndex++] = biomePalette.idAt(i);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Rewrite to empty section
|
||||||
|
if (section.getNonAirBlocksCount() == 0) {
|
||||||
|
sections[j] = null;
|
||||||
|
} else {
|
||||||
|
mask.set(j);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
final List<CompoundTag> blockEntityTags = new ArrayList<>(oldChunk.blockEntities().size());
|
final List<CompoundTag> blockEntityTags = new ArrayList<>(oldChunk.blockEntities().size());
|
||||||
@ -195,8 +203,6 @@ public final class BlockItemPackets1_18 extends ItemRewriter<Protocol1_17_1To1_1
|
|||||||
tag.put("id", new StringTag(id));
|
tag.put("id", new StringTag(id));
|
||||||
}
|
}
|
||||||
|
|
||||||
final BitSet mask = new BitSet(oldChunk.getSections().length);
|
|
||||||
mask.set(0, oldChunk.getSections().length);
|
|
||||||
final Chunk chunk = new BaseChunk(oldChunk.getX(), oldChunk.getZ(), true, false, mask,
|
final Chunk chunk = new BaseChunk(oldChunk.getX(), oldChunk.getZ(), true, false, mask,
|
||||||
oldChunk.getSections(), biomeData, oldChunk.getHeightMap(), blockEntityTags);
|
oldChunk.getSections(), biomeData, oldChunk.getHeightMap(), blockEntityTags);
|
||||||
wrapper.write(new Chunk1_17Type(tracker.currentWorldSectionHeight()), chunk);
|
wrapper.write(new Chunk1_17Type(tracker.currentWorldSectionHeight()), chunk);
|
||||||
|
@ -3,7 +3,7 @@ metadata.format.version = "1.1"
|
|||||||
[versions]
|
[versions]
|
||||||
|
|
||||||
# ViaVersion
|
# ViaVersion
|
||||||
viaver = "4.1.0-1.18-pre2-SNAPSHOT"
|
viaver = "4.1.0-1.18-pre8-SNAPSHOT"
|
||||||
|
|
||||||
# Common provided
|
# Common provided
|
||||||
netty = "4.0.20.Final"
|
netty = "4.0.20.Final"
|
||||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren