You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
2.6 KiB
54 lines
2.6 KiB
--- ../src-base/minecraft/net/minecraft/network/play/server/S21PacketChunkData.java |
|
+++ ../src-work/minecraft/net/minecraft/network/play/server/S21PacketChunkData.java |
|
@@ -198,8 +198,10 @@ |
|
if (aextendedblockstorage[l] != null && (!p_149269_1_ || !aextendedblockstorage[l].isEmpty()) && (p_149269_2_ & 1 << l) != 0) |
|
{ |
|
nibblearray = aextendedblockstorage[l].getMetadataArray(); |
|
- System.arraycopy(nibblearray.data, 0, abyte, j, nibblearray.data.length); |
|
- j += nibblearray.data.length; |
|
+ // Spigot start |
|
+ nibblearray.copyToByteArray(abyte, j); |
|
+ j += nibblearray.getByteLength(); |
|
+ // Spigot end |
|
} |
|
} |
|
|
|
@@ -208,8 +210,10 @@ |
|
if (aextendedblockstorage[l] != null && (!p_149269_1_ || !aextendedblockstorage[l].isEmpty()) && (p_149269_2_ & 1 << l) != 0) |
|
{ |
|
nibblearray = aextendedblockstorage[l].getBlocklightArray(); |
|
- System.arraycopy(nibblearray.data, 0, abyte, j, nibblearray.data.length); |
|
- j += nibblearray.data.length; |
|
+ // Spigot start |
|
+ nibblearray.copyToByteArray(abyte, j); |
|
+ j += nibblearray.getByteLength(); |
|
+ // Spigot end |
|
} |
|
} |
|
|
|
@@ -220,8 +224,10 @@ |
|
if (aextendedblockstorage[l] != null && (!p_149269_1_ || !aextendedblockstorage[l].isEmpty()) && (p_149269_2_ & 1 << l) != 0) |
|
{ |
|
nibblearray = aextendedblockstorage[l].getSkylightArray(); |
|
- System.arraycopy(nibblearray.data, 0, abyte, j, nibblearray.data.length); |
|
- j += nibblearray.data.length; |
|
+ // Spigot start |
|
+ nibblearray.copyToByteArray(abyte, j); |
|
+ j += nibblearray.getByteLength(); |
|
+ // Spigot end |
|
} |
|
} |
|
} |
|
@@ -233,8 +239,10 @@ |
|
if (aextendedblockstorage[l] != null && (!p_149269_1_ || !aextendedblockstorage[l].isEmpty()) && aextendedblockstorage[l].getBlockMSBArray() != null && (p_149269_2_ & 1 << l) != 0) |
|
{ |
|
nibblearray = aextendedblockstorage[l].getBlockMSBArray(); |
|
- System.arraycopy(nibblearray.data, 0, abyte, j, nibblearray.data.length); |
|
- j += nibblearray.data.length; |
|
+ // Spigot start |
|
+ nibblearray.copyToByteArray(abyte, j); |
|
+ j += nibblearray.getByteLength(); |
|
+ // Spigot end |
|
} |
|
} |
|
}
|
|
|