Skip to content

Commit

Permalink
Update error messages mentioning png library
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jun 15, 2024
1 parent d93f8d5 commit 845ca2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public static void dumpPng(Level level, MultiNoiseBiomeSource source, Dimension
output = PngOutput.INSTANCE_1024;
} else {
output = (l, biomeGetter, possibleBiomes) -> {
throw new IOException("PNGJ is not present; cannot export biome dump as PNG!");
throw new IOException("PNJ is not present; cannot export biome dump as PNG!");
};
}
dump(level, source, x, y, location, output, frame);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import dev.lukebemish.biomesquisher.impl.dump.BiomeDumper;
import dev.lukebemish.biomesquisher.impl.dump.PngOutput;
import net.minecraft.core.Holder;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.biome.Biome;
import org.apache.http.*;
import org.apache.http.entity.ByteArrayEntity;
Expand All @@ -20,7 +19,6 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Locale;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
Expand Down Expand Up @@ -104,7 +102,7 @@ public void handle(HttpRequest request, HttpResponse response, HttpContext conte

public static void startServer(WebServerThread thread) {
if (!BiomeDumper.IS_PNJ_PRESENT) {
throw new IllegalStateException("PNGJ is not present; cannot start biome dump server!");
throw new IllegalStateException("PNJ is not present; cannot start biome dump server!");
}
Thread startup = new Thread(() -> {
SERVER_LOCK.lock();
Expand Down

0 comments on commit 845ca2f

Please sign in to comment.