Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-10-05 01:31:05 +02:00
Fix nether & end #30 bump to 0.3.7
Dieser Commit ist enthalten in:
Ursprung
88086e00d0
Commit
8e0833ca6b
@ -1,4 +1,4 @@
|
|||||||
# ViaVersion 0.3.6
|
# ViaVersion 0.3.7
|
||||||
**Allows the connection of 1.8 clients to 1.9**
|
**Allows the connection of 1.8 clients to 1.9**
|
||||||
|
|
||||||
This plugin modifies netty to allow connection of 1.9 clients to 1.8,
|
This plugin modifies netty to allow connection of 1.9 clients to 1.8,
|
||||||
|
@ -39,7 +39,7 @@ public class NetUtil {
|
|||||||
|
|
||||||
public static Column readOldChunkData(int x, int z, boolean isFullChunk, int bitmask, byte[] input, boolean checkForSky, boolean hasSkyLight) {
|
public static Column readOldChunkData(int x, int z, boolean isFullChunk, int bitmask, byte[] input, boolean checkForSky, boolean hasSkyLight) {
|
||||||
int pos = 0;
|
int pos = 0;
|
||||||
int expected = 0;
|
int expected = isFullChunk ? 256 : 0;
|
||||||
boolean sky = false;
|
boolean sky = false;
|
||||||
ShortBuffer buf = ByteBuffer.wrap(input).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer();
|
ShortBuffer buf = ByteBuffer.wrap(input).order(ByteOrder.LITTLE_ENDIAN).asShortBuffer();
|
||||||
// 0 = Calculate expected length and determine if the packet has skylight.
|
// 0 = Calculate expected length and determine if the packet has skylight.
|
||||||
@ -85,7 +85,7 @@ public class NetUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(pass == 3) {
|
if(pass == 3) {
|
||||||
if(chunks[ind].getSkyLight() != null) {
|
if(sky) {
|
||||||
NibbleArray3d skylight = chunks[ind].getSkyLight();
|
NibbleArray3d skylight = chunks[ind].getSkyLight();
|
||||||
System.arraycopy(input, pos, skylight.getData(), 0, skylight.getData().length);
|
System.arraycopy(input, pos, skylight.getData(), 0, skylight.getData().length);
|
||||||
pos += skylight.getData().length;
|
pos += skylight.getData().length;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
name: ViaVersion
|
name: ViaVersion
|
||||||
main: us.myles.ViaVersion.ViaVersionPlugin
|
main: us.myles.ViaVersion.ViaVersionPlugin
|
||||||
author: _MylesC
|
author: _MylesC
|
||||||
version: 0.3.6
|
version: 0.3.7
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren