2 Bug Fixes

- Fixed #552 by making sure the biome saved in datapacks is all lowercase
- Fixed extra character showing when Iris downloads a pack
This commit is contained in:
StrangeOne101
2021-08-17 23:20:09 +12:00
parent d79af8fcc2
commit b55bf6e6c1
4 changed files with 8 additions and 4 deletions

View File

@@ -167,4 +167,8 @@ public class IrisBiomeCustom {
return 0;
}
public String getId() {
return id.toLowerCase();
}
}

View File

@@ -472,14 +472,14 @@ public class IrisDimension extends IrisRegistrant {
boolean write = false;
boolean changed = false;
IO.delete(new File(datapacks, "iris/data/" + getLoadKey()));
IO.delete(new File(datapacks, "iris/data/" + getLoadKey().toLowerCase()));
for (IrisBiome i : getAllBiomes(data)) {
if (i.isCustom()) {
write = true;
for (IrisBiomeCustom j : i.getCustomDerivitives()) {
File output = new File(datapacks, "iris/data/" + getLoadKey() + "/worldgen/biome/" + j.getId() + ".json");
File output = new File(datapacks, "iris/data/" + getLoadKey().toLowerCase() + "/worldgen/biome/" + j.getId() + ".json");
if (!output.exists()) {
changed = true;