Skip to content

Commit

Permalink
Change: disable mixin.entity.hopper_minecart optimizations if Hopper+…
Browse files Browse the repository at this point in the history
… mod is loaded. Closes #133
  • Loading branch information
AbdElAziz333 committed Feb 8, 2024
1 parent 341b25a commit d9d389e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
return false;
}

if (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "entity.hopper_minecart") && (FMLLoader.getLoadingModList().getModFileById("hplus")) != null) {

}

if ((mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "shapes") || (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "math.sine_lut")) || (mixinClassName.startsWith(MIXIN_PACKAGE_ROOT + "alloc.block_state"))) && !LoadingModList.get().getErrors().isEmpty()) {
return false;
}
Expand Down

0 comments on commit d9d389e

Please sign in to comment.