Skip to content

Commit

Permalink
fix #387, Fixed game crash when meteor-client version is 2188
Browse files Browse the repository at this point in the history
  • Loading branch information
qingshu-ui committed Oct 19, 2024
1 parent 24b148b commit 1e9643b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ bin/
# fabric

run/
.kotlin
5 changes: 4 additions & 1 deletion src/main/java/anticope/rejects/mixin/meteor/ModuleMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ public class ModuleMixin {

@Mutable @Shadow public String title;

@Inject(method = "<init>", at = @At("TAIL"))
@Inject(
method = "<init>(Lmeteordevelopment/meteorclient/systems/modules/Category;Ljava/lang/String;Ljava/lang/String;)V",
at = @At("TAIL")
)
private void onInit(Category category, String name, String description, CallbackInfo info) {
if (RejectsConfig.get().duplicateModuleNames) {
this.name = RejectsUtils.getModuleName(name);
Expand Down

0 comments on commit 1e9643b

Please sign in to comment.