Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
GlodBlock authored and shartte committed May 9, 2024
1 parent 0aea998 commit a08a9f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/main/java/appeng/client/guidebook/GuideSourceWatcher.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
import io.methvin.watcher.DirectoryChangeListener;
import io.methvin.watcher.DirectoryWatcher;

import net.fabricmc.loader.impl.FabricLoaderImpl;
import net.minecraft.resources.ResourceLocation;
import net.neoforged.fml.ModList;

import appeng.client.guidebook.compiler.PageCompiler;
import appeng.client.guidebook.compiler.ParsedGuidePage;
Expand Down Expand Up @@ -62,7 +62,7 @@ public GuideSourceWatcher(String namespace, Path sourceFolder) {
// The namespace does not necessarily *need* to be a mod id, but if it is, the source pack needs to
// follow the specific mod-id format. Otherwise we assume it's a resource pack where namespace == pack id,
// which is also not 100% correct.
this.sourcePackId = ModList.get().isLoaded(namespace) ? "mod:" + namespace : namespace;
this.sourcePackId = FabricLoaderImpl.INSTANCE.isModLoaded(namespace) ? "mod:" + namespace : namespace;
this.sourceFolder = sourceFolder;
if (!Files.isDirectory(sourceFolder)) {
throw new RuntimeException("Cannot find the specified folder for the AE2 guidebook sources: "
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/appeng/client/guidebook/screen/GuideScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
import com.mojang.blaze3d.systems.RenderSystem;
import com.mojang.blaze3d.vertex.Tesselator;

import net.fabricmc.loader.api.ModContainer;
import net.fabricmc.loader.api.metadata.ModMetadata;
import net.fabricmc.loader.impl.FabricLoaderImpl;
import org.jetbrains.annotations.Nullable;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import net.fabricmc.loader.api.ModContainer;
import net.fabricmc.loader.api.metadata.ModMetadata;
import net.fabricmc.loader.impl.FabricLoaderImpl;
import net.minecraft.Util;
import net.minecraft.client.Minecraft;
import net.minecraft.client.gui.GuiGraphics;
Expand Down

0 comments on commit a08a9f9

Please sign in to comment.