Skip to content

Commit

Permalink
Disable broken mantle mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
AlphaMode committed Nov 13, 2023
1 parent 482dabf commit 28a9362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/java/slimeknights/tconstruct/StarSodiumFixer.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ public class StarSodiumFixer implements MixinCanceller {

@Override
public boolean shouldCancel(List<String> targetClassNames, String mixinClassName) {
if (mixinClassName.equals("slimeknights.mantle.mixin.client.FluidStorageMixin") || mixinClassName.equals("slimeknights.mantle.mixin.client.ItemStorageMixin") || mixinClassName.equals("slimeknights.mantle.mixin.common.TransactionManagerImplMixin"))
return true;
if (mixinClassName.startsWith("me.alphamode.star.mixin.sodium") || mixinClassName.startsWith("me.alphamode.star.mixin.indium"))
return FabricLoader.getInstance().getModContainer("sodium").map(modContainer -> modContainer.getMetadata().getVersion().compareTo(SODIUM_VERSION) < 0).orElse(false);
return false;
Expand Down

0 comments on commit 28a9362

Please sign in to comment.