mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-07-01 02:46:41 +00:00
optimized biome streaming to schematics
This commit is contained in:
@ -37,6 +37,14 @@ public final class IOUtil {
|
||||
return i;
|
||||
}
|
||||
|
||||
public static void writeVarInt(OutputStream out, int value) throws IOException {
|
||||
while ((value & -128) != 0) {
|
||||
out.write(value & 127 | 128);
|
||||
value >>>= 7;
|
||||
}
|
||||
out.write(value);
|
||||
}
|
||||
|
||||
public static void copy(InputStream in, OutputStream out) throws IOException {
|
||||
byte[] buf = new byte[8192];
|
||||
while (true) {
|
||||
|
Reference in New Issue
Block a user