[1.20.3] NBT read compressed function fix

Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
Irmo van den Berge committed 2023-12-05 21:16:46 +01:00
1 parent 20b26f918a
commit c43d5c2a33
1 file changed
+6
@@ -836,7 +836,13 @@ class NBTCompressedStreamTools {
}
// Compressed tag compound
#if version >= 1.20.3
public static (NBTTagCompoundHandle) NBTTagCompound compressed_readTagCompound(java.io.InputStream inputstream) {
return NBTCompressedStreamTools.readCompressed(inputstream, NBTReadLimiter.unlimitedHeap());
}
#else
public static (NBTTagCompoundHandle) NBTTagCompound compressed_readTagCompound:readCompressed(java.io.InputStream inputstream);
#endif
public static void compressed_writeTagCompound:writeCompressed((NBTTagCompoundHandle) NBTTagCompound nbttagcompound, java.io.OutputStream outputstream);
#else
// Uncompressed tag