Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
Fix fabric loader tripping over double entrypoint definition (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
florensie committed Apr 17, 2022
1 parent e7f9315 commit bbc05e2
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 3 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
11 changes: 11 additions & 0 deletions src/main/java/artifacts/ArtifactsPreLaunch.java
Original file line number Diff line number Diff line change
@@ -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();
}
}
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"artifacts.ArtifactsClient"
],
"preLaunch": [
"com.llamalad7.mixinextras.MixinExtrasBootstrap::init"
"artifacts.ArtifactsPreLaunch"
],
"artifacts-compathandlers": [
"artifacts.common.compat.HaemaCompat",
Expand Down

0 comments on commit bbc05e2

Please sign in to comment.