3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-10-02 03:40:06 +02:00

fix: only write into palette once, write into data as varint

Dieser Commit ist enthalten in:
Pierre Maurice Schwang 2024-06-09 19:03:46 +02:00
Ursprung e53d3b6d89
Commit a9c89616b1
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37E613079F3E5BB9

Datei anzeigen

@ -132,12 +132,16 @@ public class FastSchematicWriterV3 implements ClipboardWriter {
char value = palette[ordinal];
if (value == Character.MIN_VALUE) {
palette[ordinal] = value = (char) ++index;
}
// Write to palette
blocks.writeNamedTag(baseBlock.getAsString(), value);
}
// Write to cache for "Data" Tag
dataBuf.write(value);
while ((value & -128) != 0) {
dataBuf.write(value & 127 | 128);
value >>>= 7;
}
CompoundBinaryTag tag;
if ((tag = baseBlock.getNbt()) != null) {