This commit is contained in:
Jesse Boyd 2017-08-06 18:36:55 +10:00
commit 6744a59d08
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 2 additions and 1 deletions

View File

@ -222,7 +222,7 @@ public class SchematicWriter implements ClipboardWriter {
clipboard.IMP.streamIds(new NBTStreamer.ByteReader() {
@Override
public void run(int index, int byteValue) {
if (write[0] ^= true) {
if (write[0]) {
try {
rawStream.write(((byteValue >> 8) << 4) + (lastAdd[0]));
} catch (IOException e) {
@ -231,6 +231,7 @@ public class SchematicWriter implements ClipboardWriter {
} else {
lastAdd[0] = byteValue >> 8;
}
write[0] ^= true;
}
});
if (write[0]) {