From 845ca2ff3560244fcb9312ad30e3011ea7b51174 Mon Sep 17 00:00:00 2001 From: Luke Bemish Date: Fri, 14 Jun 2024 23:15:07 -0500 Subject: [PATCH] Update error messages mentioning png library --- .../dev/lukebemish/biomesquisher/impl/dump/BiomeDumper.java | 2 +- .../lukebemish/biomesquisher/impl/server/WebServerThread.java | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/dev/lukebemish/biomesquisher/impl/dump/BiomeDumper.java b/src/main/java/dev/lukebemish/biomesquisher/impl/dump/BiomeDumper.java index 44e18a2..4232098 100644 --- a/src/main/java/dev/lukebemish/biomesquisher/impl/dump/BiomeDumper.java +++ b/src/main/java/dev/lukebemish/biomesquisher/impl/dump/BiomeDumper.java @@ -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); diff --git a/src/main/java/dev/lukebemish/biomesquisher/impl/server/WebServerThread.java b/src/main/java/dev/lukebemish/biomesquisher/impl/server/WebServerThread.java index c6e11ec..efa82e0 100644 --- a/src/main/java/dev/lukebemish/biomesquisher/impl/server/WebServerThread.java +++ b/src/main/java/dev/lukebemish/biomesquisher/impl/server/WebServerThread.java @@ -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; @@ -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; @@ -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();