Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Commit

Permalink
don't import in InstallMeteorScreen
Browse files Browse the repository at this point in the history
  • Loading branch information
DAMcraft committed Aug 23, 2024
1 parent 154b56c commit 51c5359
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.google.gson.Gson;
import com.google.gson.JsonObject;
import com.mojang.logging.LogUtils;
import de.damcraft.serverseeker.SmallHttp;
import net.fabricmc.loader.api.FabricLoader;
import net.minecraft.SharedConstants;
Expand All @@ -19,8 +20,6 @@
import java.util.Optional;
import java.util.concurrent.CompletableFuture;

import static de.damcraft.serverseeker.ServerSeeker.LOG;

public class InstallMeteorScreen extends Screen {
public InstallMeteorScreen() {
super(Text.of("Meteor Client is not installed!"));
Expand Down Expand Up @@ -103,7 +102,7 @@ private void install() {
Files.copy(file.body(), modsFolder.resolve(filename));
} catch (IOException | SecurityException | InvalidPathException e) {
this.displayError("Failed to save Meteor! Please install it manually.");
LOG.error(e.toString());
LogUtils.getLogger().error(e.toString()); // we can't import without causing errors (no meteor)
return;
}

Expand Down

0 comments on commit 51c5359

Please sign in to comment.