diff --git a/build.gradle b/build.gradle index 6826127..1245630 100644 --- a/build.gradle +++ b/build.gradle @@ -32,10 +32,6 @@ dependencies { include(implementation("com.moulberry:mixinconstraints:1.0.2")) } -loom { - accessWidenerPath.set("src/main/resources/act.accesswidener" as File) -} - processResources { inputs.property "version", project.version diff --git a/src/main/java/com/github/tatercertified/fabricautocrafter/mixin/LithiumSleepControlMixin.java b/src/main/java/com/github/tatercertified/fabricautocrafter/mixin/LithiumSleepControlMixin.java index 2b567c6..f04d666 100644 --- a/src/main/java/com/github/tatercertified/fabricautocrafter/mixin/LithiumSleepControlMixin.java +++ b/src/main/java/com/github/tatercertified/fabricautocrafter/mixin/LithiumSleepControlMixin.java @@ -4,6 +4,7 @@ import com.github.tatercertified.fabricautocrafter.AutoCraftingTableContainer; import com.moulberry.mixinconstraints.annotations.IfModLoaded; import net.caffeinemc.mods.lithium.common.block.entity.SleepingBlockEntity; +import org.spongepowered.asm.mixin.Final; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.Shadow; import org.spongepowered.asm.mixin.injection.At; @@ -14,8 +15,9 @@ @Mixin(AutoCraftingTableContainer.class) public class LithiumSleepControlMixin { + @Final @Shadow - AutoCraftingTableBlockEntity blockEntity; + private AutoCraftingTableBlockEntity blockEntity; @Inject(method = "onContentChanged", at = @At("TAIL")) public void injectSleep(CallbackInfo ci) { diff --git a/src/main/resources/act.accesswidener b/src/main/resources/act.accesswidener deleted file mode 100644 index 463d655..0000000 --- a/src/main/resources/act.accesswidener +++ /dev/null @@ -1,2 +0,0 @@ -accessWidener v1 named -accessible method net/minecraft/recipe/RecipeManager getAllOfType (Lnet/minecraft/recipe/RecipeType;)Ljava/util/Collection; diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 90be134..39f1889 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -20,7 +20,6 @@ "mixins": [ "autocrafter.mixins.json" ], - "accessWidener": "act.accesswidener", "depends": { "fabricloader": "*", "fabric": "*",