Skip to content

Commit

Permalink
Remove unused parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebemish committed Jun 15, 2024
1 parent 845ca2f commit fb1a7ff
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ private static void setupServer(CommandContext<CommandSourceStack> commandContex
WebServerThread.startServer(
new WebServerThread(
port,
biomeSource.possibleBiomes(),
(x, y, location, frame, output) -> BiomeDumper.dump(commandContext.getSource().getLevel(), multiNoiseBiomeSource, x, y, location, output, frame)
)
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import dev.lukebemish.biomesquisher.impl.Platform;
import dev.lukebemish.biomesquisher.impl.dump.BiomeDumper;
import dev.lukebemish.biomesquisher.impl.dump.PngOutput;
import net.minecraft.core.Holder;
import net.minecraft.world.level.biome.Biome;
import org.apache.http.*;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.entity.ContentType;
Expand All @@ -19,7 +17,6 @@
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.util.Locale;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
Expand All @@ -28,7 +25,7 @@ public class WebServerThread extends Thread {
private final HttpServer server;
private final ImageProvider imageProvider;

public WebServerThread(int listenerPort, Set<Holder<Biome>> possibleBiomes, ImageProvider imageProvider) {
public WebServerThread(int listenerPort, ImageProvider imageProvider) {
this.server = ServerBootstrap.bootstrap()
.setListenerPort(listenerPort)
.registerHandler("*", new BiomeRequestHandler())
Expand Down

0 comments on commit fb1a7ff

Please sign in to comment.