Skip to content

Commit

Permalink
remove jei fabric api module injection/relocation as it is not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Abbie5 committed Dec 30, 2023
1 parent 93e2d90 commit 0bb1667
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 32 deletions.
9 changes: 0 additions & 9 deletions jei-bridge/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import org.gradle.jvm.tasks.Jar

plugins {
id("dev.architectury.loom")
}

val versionMc: String by rootProject
val versionForge: String by rootProject
val relocateDirectory: Jar.(String, String) -> Unit by rootProject.extra

loom {
forge {
Expand All @@ -28,14 +25,8 @@ dependencies {
mappings(loom.officialMojangMappings())
forge("net.minecraftforge:forge:$versionMc-$versionForge")

compileOnly(project(":extras-utils"))

modImplementation(group = "dev.su5ed.sinytra", name = "fabric-loader", version = "2.3.4+0.14.21+1.20.1")
modImplementation(group = "dev.su5ed.sinytra.fabric-api", name = "fabric-transfer-api-v1", version = "3.3.1+6acac45477")

modImplementation(group = "mezz.jei", name = "jei-$versionMc-forge", version = "15.2.0.27")
}

tasks.remapJar {
relocateDirectory(this, "mezz/jei", "relocate/mezz/jei")
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
package dev.su5ed.sinytra.connectorextras.jeibridge;

import com.mojang.logging.LogUtils;
import dev.su5ed.sinytra.connectorextras.util.HackyModuleInjector;
import net.minecraftforge.fml.common.Mod;
import org.slf4j.Logger;

@Mod("connectorextras_jei_bridge")
public class JEIBridge {
private static final Logger LOGGER = LogUtils.getLogger();
public static final String JEI_MODID = "jei";

public static void injectModule() {
LOGGER.info("Injecting JEI API classes");
HackyModuleInjector.injectModuleSources(JEI_MODID, JEIBridge.class.getResource("/relocate"));
}
}

This file was deleted.

3 changes: 1 addition & 2 deletions jei-bridge/src/main/resources/mixins.jeibridge.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"package": "dev.su5ed.sinytra.connectorextras.jeibridge.mixin",
"plugin": "dev.su5ed.sinytra.connectorextras.jeibridge.JEIBridgeMixinPlugin",
"mixins": [
"ForgePluginFinderMixin",
"MainEntrypointMixin"
"ForgePluginFinderMixin"
]
}

0 comments on commit 0bb1667

Please sign in to comment.