mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
Finish fixing AddBlock support
This commit is contained in:
parent
8c519afce6
commit
2411adb6d1
@ -521,9 +521,8 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
|
|||||||
int index = (HEADER_SIZE) + (i << 1);
|
int index = (HEADER_SIZE) + (i << 1);
|
||||||
// 00000000 00000000
|
// 00000000 00000000
|
||||||
// [ id ]data
|
// [ id ]data
|
||||||
byte id2 = mbb.get(index + 1);
|
char combined = mbb.getChar(index);
|
||||||
mbb.put(index, (byte) (id >> 4));
|
mbb.putChar(index, (char) ((combined & 0xF00F) + (id << 4)));
|
||||||
mbb.put(index + 1, (byte) (((id & 0xFF) << 4) + (id2 & 0xFF)));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCombined(int i, int combined) {
|
public void setCombined(int i, int combined) {
|
||||||
@ -536,7 +535,7 @@ public class DiskOptimizedClipboard extends FaweClipboard implements Closeable {
|
|||||||
// 00000000 00000000
|
// 00000000 00000000
|
||||||
// [ id ]data
|
// [ id ]data
|
||||||
char combined = mbb.getChar(index);
|
char combined = mbb.getChar(index);
|
||||||
mbb.putChar(index, (char) ((combined & 0xFFFF) + (add << 12)));
|
mbb.putChar(index, (char) ((combined & 0x0FFF) + (add << 12)));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user