Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 17:30:08 +01:00
fix: only write into palette once, write into data as varint
Dieser Commit ist enthalten in:
Ursprung
e53d3b6d89
Commit
a9c89616b1
@ -132,12 +132,16 @@ public class FastSchematicWriterV3 implements ClipboardWriter {
|
|||||||
char value = palette[ordinal];
|
char value = palette[ordinal];
|
||||||
if (value == Character.MIN_VALUE) {
|
if (value == Character.MIN_VALUE) {
|
||||||
palette[ordinal] = value = (char) ++index;
|
palette[ordinal] = value = (char) ++index;
|
||||||
|
// Write to palette
|
||||||
|
blocks.writeNamedTag(baseBlock.getAsString(), value);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Write to palette
|
|
||||||
blocks.writeNamedTag(baseBlock.getAsString(), value);
|
|
||||||
// Write to cache for "Data" Tag
|
// Write to cache for "Data" Tag
|
||||||
dataBuf.write(value);
|
|
||||||
|
while ((value & -128) != 0) {
|
||||||
|
dataBuf.write(value & 127 | 128);
|
||||||
|
value >>>= 7;
|
||||||
|
}
|
||||||
|
|
||||||
CompoundBinaryTag tag;
|
CompoundBinaryTag tag;
|
||||||
if ((tag = baseBlock.getNbt()) != null) {
|
if ((tag = baseBlock.getNbt()) != null) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren