Skip to content

Commit

Permalink
Remove derelict Iris compatibility
Browse files Browse the repository at this point in the history
Better late than never amirite

Signed-off-by: unilock <[email protected]>
  • Loading branch information
Pyrofab authored and unilock committed Dec 8, 2023
1 parent a1811ad commit 4fe1033
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 81 deletions.
10 changes: 4 additions & 6 deletions src/main/java/ladysnake/satin/mixin/SatinMixinPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import org.spongepowered.asm.mixin.extensibility.IMixinConfigPlugin;
import org.spongepowered.asm.mixin.extensibility.IMixinInfo;

import java.util.ArrayList;
import java.util.List;
import java.util.Set;

Expand All @@ -37,6 +36,9 @@ public final class SatinMixinPlugin implements IMixinConfigPlugin {
if (loader.isModLoaded("canvas")) {
LOGGER.warn("[Satin] Canvas is present, custom block renders will not work");
ALLOW_RENDER_LAYER_MIXINS = false;
} else if (loader.isModLoaded("iris")) {
LOGGER.warn("[Satin] Iris is present, custom block renders will not work");
ALLOW_RENDER_LAYER_MIXINS = false;
} else {
if (loader.isModLoaded("sodium")) {
LOGGER.warn("[Satin] Sodium is present, custom block renders may not work");
Expand Down Expand Up @@ -70,11 +72,7 @@ public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {

@Override
public List<String> getMixins() {
List<String> compatMixins = new ArrayList<>();
if (FabricLoader.getInstance().isModLoaded("iris")) {
compatMixins.add("iris.IrisRenderLayerWrapperMixin");
}
return compatMixins;
return List.of();
}

@Override
Expand Down

This file was deleted.

27 changes: 0 additions & 27 deletions src/main/java/ladysnake/satin/mixin/client/iris/package-info.java

This file was deleted.

0 comments on commit 4fe1033

Please sign in to comment.