···5151 }
5252 // If a dimension should be disabled...
5353 else {
5454- if (!rootConfig.getList("disabledDimensions", 8).contains(NbtString.of(name))) {
5454+ if (!rootConfig.getList("disabledDimensions").get().contains(NbtString.of(name))) {
5555 // remove it from the list of disabled dimensions.
5656- rootConfig.getList("disabledDimensions", 8).add(NbtString.of(name));
5656+ rootConfig.getList("disabledDimensions").get().add(NbtString.of(name));
57575858 CommonIO.write(rootConfig, configPath(), "infinity.json");
5959 }
···369369 Map<String, NbtList> tags = new HashMap<>();
370370 for (String s : structure_ids.keySet()) for (String ss : dictionary.getKeys()) if (s.contains(ss)) {
371371 for (NbtElement e : (NbtList) Objects.requireNonNull(dictionary.get(ss))) {
372372- String t = e.asString();
372372+ String t = e.asString().get();
373373 if (!tags.containsKey(t)) tags.put(t, new NbtList());
374374 structure_ids.get(s).forEach(fullname -> tags.get(t).add(NbtString.of(fullname)));
375375 }
···2121 int p = n % o;
2222 int q = (n + 1) % o;
2323 float r = (float)(age % 25) / 25.0F;
2424- int s = SheepEntity.getRgbColor(DyeColor.byId(p));
2525- int t = SheepEntity.getRgbColor(DyeColor.byId(q));
2424+ int s = SheepEntity.getRgbColor(DyeColor.byIndex(p));
2525+ int t = SheepEntity.getRgbColor(DyeColor.byIndex(q));
2626 return ColorHelper.lerp(r, s, t);
2727 }
2828
···5454 //the client unpacks a non-empty payload only when needed, meaning only if it doesn't have necessary files yet
5555 if (!songIds.isEmpty() && !Files.exists(cl.getResourcePackDir().resolve("infinity/assets/infinity/sounds.json"))) {
5656 cl.execute(() -> saveResourcePack(cl, NbtUtils.getList(songIds, "entries", NbtElement.STRING_TYPE).stream()
5757- .map(NbtElement::asString).map(Identifier::of), false));
5757+ .map(NbtElement::asString).map((str)-> Identifier.of(str.get())), false));
5858 }
5959 else if (isPreloaded()) {
6060 cl.execute(() -> {