diff --git a/CHANGELOG.md b/CHANGELOG.md index b934d2c5a..241215166 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [7.0.3] - 2022-04-17 +### Fixed +- Fix crash on startup when another mod also defines MixinExtras' init method as entrypoint (#61) + ## [7.0.2] - 2022-04-15 ### Fixed - Fix the default config version being attempted to be serialized @@ -249,7 +253,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added - Initial release -[Unreleased]: https://github.com/florensie/artifacts-fabric/compare/v7.0.2...HEAD +[Unreleased]: https://github.com/florensie/artifacts-fabric/compare/v7.0.3...HEAD +[7.0.3]: https://github.com/florensie/artifacts-fabric/compare/v7.0.2...v7.0.3 [7.0.2]: https://github.com/florensie/artifacts-fabric/compare/v7.0.1...v7.0.2 [7.0.1]: https://github.com/florensie/artifacts-fabric/compare/v7.0.0...v7.0.1 [7.0.0]: https://github.com/florensie/artifacts-fabric/compare/v6.0.0...v7.0.0 diff --git a/gradle.properties b/gradle.properties index b6d26227d..7c9adf341 100644 --- a/gradle.properties +++ b/gradle.properties @@ -9,7 +9,7 @@ minecraft_version=1.18.2-rc1 loader_version=0.13.3 # Mod Properties -mod_version=7.0.2 +mod_version=7.0.3 maven_group=artifacts archives_base_name=artifacts diff --git a/src/main/java/artifacts/ArtifactsPreLaunch.java b/src/main/java/artifacts/ArtifactsPreLaunch.java new file mode 100644 index 000000000..2177f90f3 --- /dev/null +++ b/src/main/java/artifacts/ArtifactsPreLaunch.java @@ -0,0 +1,11 @@ +package artifacts; + +import com.llamalad7.mixinextras.MixinExtrasBootstrap; +import net.fabricmc.loader.api.entrypoint.PreLaunchEntrypoint; + +public class ArtifactsPreLaunch implements PreLaunchEntrypoint { + @Override + public void onPreLaunch() { + MixinExtrasBootstrap.init(); + } +} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 57c8947e8..b377d4a6b 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -26,7 +26,7 @@ "artifacts.ArtifactsClient" ], "preLaunch": [ - "com.llamalad7.mixinextras.MixinExtrasBootstrap::init" + "artifacts.ArtifactsPreLaunch" ], "artifacts-compathandlers": [ "artifacts.common.compat.HaemaCompat",