Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Fix 1.17 snapshot restoration (#1632)
Dieser Commit ist enthalten in:
Ursprung
081d8ddb50
Commit
dec0373081
@ -98,16 +98,15 @@ public class AnvilChunk17 implements Chunk {
|
|||||||
ListBinaryTag sections = rootTag.getList("Sections");
|
ListBinaryTag sections = rootTag.getList("Sections");
|
||||||
|
|
||||||
for (BinaryTag rawSectionTag : sections) {
|
for (BinaryTag rawSectionTag : sections) {
|
||||||
if (!(rawSectionTag instanceof CompoundBinaryTag)) {
|
if (!(rawSectionTag instanceof CompoundBinaryTag sectionTag)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
CompoundBinaryTag sectionTag = (CompoundBinaryTag) rawSectionTag;
|
|
||||||
if (sectionTag.get("Y") == null || sectionTag.get("BlockStates") == null) {
|
if (sectionTag.get("Y") == null || sectionTag.get("BlockStates") == null) {
|
||||||
continue; // Empty section.
|
continue; // Empty section.
|
||||||
}
|
}
|
||||||
|
|
||||||
int y = NbtUtils.getInt(tag, "Y");
|
int y = NbtUtils.getInt(sectionTag, "Y");
|
||||||
updateSectionIndexRange(y);
|
updateSectionIndexRange(y);
|
||||||
|
|
||||||
// parse palette
|
// parse palette
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren