mirror of
https://github.com/BlueMap-Minecraft/BlueMap.git
synced 2025-02-16 12:31:58 +01:00
Fix lowres tiles failig to load correctly
This commit is contained in:
parent
77b7854d0f
commit
00b01cd0da
@ -134,6 +134,10 @@ public static BufferGeometry fromJson(String jsonString) throws IOException {
|
|||||||
Map<String, BufferAttribute> attributes = new HashMap<>();
|
Map<String, BufferAttribute> attributes = new HashMap<>();
|
||||||
|
|
||||||
json.beginObject(); // root
|
json.beginObject(); // root
|
||||||
|
|
||||||
|
while (!"tileGeometry".equals(json.nextName())) json.skipValue(); // find tileGeometry
|
||||||
|
json.beginObject(); // tileGeometry
|
||||||
|
|
||||||
while (json.hasNext()) {
|
while (json.hasNext()) {
|
||||||
String name1 = json.nextName();
|
String name1 = json.nextName();
|
||||||
|
|
||||||
@ -186,6 +190,9 @@ else if (name3.equals("count")) {
|
|||||||
|
|
||||||
else json.skipValue();
|
else json.skipValue();
|
||||||
}
|
}
|
||||||
|
json.endObject(); // tileGeometry
|
||||||
|
|
||||||
|
while (json.hasNext()) json.skipValue(); // skip remaining values
|
||||||
json.endObject(); // root
|
json.endObject(); // root
|
||||||
|
|
||||||
groups.sort((g1, g2) -> (int) Math.signum(g1.getStart() - g2.getStart()));
|
groups.sort((g1, g2) -> (int) Math.signum(g1.getStart() - g2.getStart()));
|
||||||
|
Loading…
Reference in New Issue
Block a user