Skip to content

Commit

Permalink
Made EMF and ETF compileOnly so that servers can run
Browse files Browse the repository at this point in the history
  • Loading branch information
StewStrong committed Sep 27, 2024
1 parent b48dab2 commit fe1b77d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,12 @@ public boolean shouldApplyMixin(final String s, final String mixinClassName) {
return false;
}
}
// Only load this mixin when ETF is installed
if (mixinClassName.equals("org.valkyrienskies.mod.mixin.mod_compat.etf.MixinBlockEntity")) {
if (!classExists("traben.entity_texture_features.utils.ETFEntity")) {
return false;
}
}

return true;
}
Expand Down
4 changes: 2 additions & 2 deletions fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ dependencies {
modCompileOnly("maven.modrinth:cc-tweaked:${cc_tweaked_version}")

// EMF compat
modImplementation("curse.maven:entity-model-features-844662:5696901")
modImplementation("curse.maven:entity-texture-features-fabric-568563:5697084")
modCompileOnly("curse.maven:entity-model-features-844662:5696901")
modCompileOnly("curse.maven:entity-texture-features-fabric-568563:5697084")

// Create compat
modCompileOnly("com.simibubi.create:create-fabric-${minecraft_version}:${create_fabric_version}") {
Expand Down
4 changes: 2 additions & 2 deletions forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ dependencies {
modCompileOnly("maven.modrinth:cc-tweaked:${cc_tweaked_version}")

// EMF compat
modImplementation("curse.maven:entity-model-features-844662:5696899")
modImplementation("curse.maven:entity-texture-features-fabric-568563:5697083")
modCompileOnly("curse.maven:entity-model-features-844662:5696899")
modCompileOnly("curse.maven:entity-texture-features-fabric-568563:5697083")

modCompileOnly("maven.modrinth:create-utilities:0.2.0+1.20.1")
modImplementation("teamreborn:energy:${energy_version}") {
Expand Down

0 comments on commit fe1b77d

Please sign in to comment.