craftbukkit/nms-patches/net/minecraft/network/PacketDataSerializer.patch

21 lines
927 B
Diff
Raw Normal View History

2021-03-16 09:00:00 +11:00
--- a/net/minecraft/network/PacketDataSerializer.java
+++ b/net/minecraft/network/PacketDataSerializer.java
2025-06-18 01:15:00 +10:00
@@ -174,7 +174,7 @@
2021-06-11 15:00:00 +10:00
2021-11-22 09:00:00 +11:00
public void writeIntIdList(IntList intlist) {
this.writeVarInt(intlist.size());
- intlist.forEach(this::writeVarInt);
+ intlist.forEach((java.util.function.IntConsumer) this::writeVarInt); // CraftBukkit - decompile error
2021-06-11 15:00:00 +10:00
}
2024-04-24 01:15:00 +10:00
public <K, V, M extends Map<K, V>> M readMap(IntFunction<M> intfunction, StreamDecoder<? super PacketDataSerializer, K> streamdecoder, StreamDecoder<? super PacketDataSerializer, V> streamdecoder1) {
2025-06-18 01:15:00 +10:00
@@ -581,7 +581,7 @@
2024-04-24 01:15:00 +10:00
2023-09-22 02:40:00 +10:00
try {
2025-03-26 03:05:00 +11:00
NBTCompressedStreamTools.writeAnyTag(nbtbase, new ByteBufOutputStream(bytebuf));
2023-09-22 02:40:00 +10:00
- } catch (IOException ioexception) {
+ } catch (Exception ioexception) { // CraftBukkit - IOException -> Exception
throw new EncoderException(ioexception);
}
2023-09-22 02:40:00 +10:00
}