diff options
| author | shedaniel <daniel@shedaniel.me> | 2021-05-19 23:53:19 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2021-05-22 03:07:05 +0800 |
| commit | df9b970d56a639b73d91c736afcbfa0b889c9498 (patch) | |
| tree | 483a881bbf609871bc7673b54e0e2d186fc1866b | |
| parent | 784f6680c19a708485f49a82b7dffdbdda2607fa (diff) | |
| download | RoughlyEnoughItems-df9b970d56a639b73d91c736afcbfa0b889c9498.tar.gz RoughlyEnoughItems-df9b970d56a639b73d91c736afcbfa0b889c9498.tar.bz2 RoughlyEnoughItems-df9b970d56a639b73d91c736afcbfa0b889c9498.zip | |
Subsystem should be fine now?
| -rw-r--r-- | fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsFabric.java | 22 | ||||
| -rw-r--r-- | runtime/src/main/java/me/shedaniel/rei/impl/client/ErrorDisplayer.java | 2 |
2 files changed, 0 insertions, 24 deletions
diff --git a/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsFabric.java b/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsFabric.java index d14da1484..99056c6f3 100644 --- a/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsFabric.java +++ b/fabric/src/main/java/me/shedaniel/rei/fabric/RoughlyEnoughItemsFabric.java @@ -23,32 +23,10 @@ package me.shedaniel.rei.fabric; -import me.shedaniel.rei.impl.common.util.IssuesDetector; import net.fabricmc.api.ClientModInitializer; -import net.fabricmc.loader.api.FabricLoader; -import org.apache.logging.log4j.Logger; - -import java.lang.reflect.Field; -import java.util.Locale; public class RoughlyEnoughItemsFabric implements ClientModInitializer { @Override public void onInitializeClient() { - IssuesDetector.register(() -> { - try { - FabricLoader instance = FabricLoader.getInstance(); - for (Field field : instance.getClass().getDeclaredFields()) { - if (Logger.class.isAssignableFrom(field.getType())) { - field.setAccessible(true); - Logger logger = (Logger) field.get(instance); - if (logger.getName().toLowerCase(Locale.ROOT).contains("subsystem")) - return true; - } - } - } catch (Throwable ignored) { - } - return false; - }, ".ignoresubsystem", "Subsystem is detected (probably though Aristois), please contact support from them if anything happens."); - } } diff --git a/runtime/src/main/java/me/shedaniel/rei/impl/client/ErrorDisplayer.java b/runtime/src/main/java/me/shedaniel/rei/impl/client/ErrorDisplayer.java index b9e512bc9..b6eb5da51 100644 --- a/runtime/src/main/java/me/shedaniel/rei/impl/client/ErrorDisplayer.java +++ b/runtime/src/main/java/me/shedaniel/rei/impl/client/ErrorDisplayer.java @@ -24,12 +24,10 @@ package me.shedaniel.rei.impl.client; import me.shedaniel.architectury.annotations.ExpectPlatform; -import me.shedaniel.architectury.event.events.GuiEvent; import me.shedaniel.rei.RoughlyEnoughItemsState; import me.shedaniel.rei.impl.client.gui.screen.WarningAndErrorScreen; import net.minecraft.client.Minecraft; import net.minecraft.client.gui.screens.Screen; -import net.minecraft.world.InteractionResult; import java.util.function.Consumer; |
