Skip to content

Commit

Permalink
Fix Fabric Shield Lib compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
MerchantPug committed Jul 4, 2022
1 parent 59a5fb3 commit b41c82d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
Expand Up @@ -20,7 +20,7 @@ public String getRefMapperConfig() {

@Override
public boolean shouldApplyMixin(String targetClassName, String mixinClassName) {
return !mixinClassName.contains("mixin.fabricshieldlib") || FabricLoader.getInstance().isModLoaded("fabricshieldlib");
return FabricLoader.getInstance().isModLoaded("fabricshieldlib");
}

@Override
Expand Down
Expand Up @@ -3,7 +3,6 @@
import com.github.crimsondawn45.fabricshieldlib.lib.object.FabricShield;
import net.minecraft.item.Item;
import net.minecraft.item.Items;
import net.minecraft.item.ShieldItem;
import net.minecraft.util.Identifier;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand Down
@@ -1,6 +1,7 @@
package com.github.merchantpug.unwieldy.mixin.fabricshieldlib;

import com.github.crimsondawn45.fabricshieldlib.lib.object.FabricShield;
import com.github.merchantpug.unwieldy.Unwieldy;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.minecraft.util.registry.RegistryKey;
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/fabric.mod.json
Expand Up @@ -23,7 +23,8 @@
]
},
"mixins": [
"unwieldy.mixins.json"
"unwieldy.mixins.json",
"unwieldy.fabricshieldlib.mixins.json"
],
"depends": {
"fabric": "*",
Expand Down

0 comments on commit b41c82d

Please sign in to comment.