Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Mar 24, 2024
1 parent e517f25 commit c929684
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/main/java/io/github/gaming32/worldhost/IOFunction.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package io.github.gaming32.worldhost;

import java.io.IOException;

@FunctionalInterface
public interface IOFunction<T, R> {
R apply(T t) throws IOException;
}
3 changes: 1 addition & 2 deletions src/main/java/io/github/gaming32/worldhost/WorldHost.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import net.minecraft.network.protocol.status.ServerStatus;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.server.players.GameProfileCache;
import org.apache.commons.io.function.IOFunction;
import org.apache.commons.lang3.StringUtils;
import org.apache.http.HttpEntity;
import org.apache.http.StatusLine;
Expand All @@ -48,6 +47,7 @@
import org.jetbrains.annotations.Nullable;
import org.quiltmc.parsers.json.JsonReader;
import org.quiltmc.parsers.json.JsonWriter;
import org.semver4j.Semver;

import java.io.*;
import java.net.InetAddress;
Expand All @@ -68,7 +68,6 @@

//#if MC >= 1.18.0
import com.mojang.logging.LogUtils;
import org.semver4j.Semver;
import org.slf4j.Logger;
//#else
//$$ import org.apache.logging.log4j.LogManager;
Expand Down

0 comments on commit c929684

Please sign in to comment.