Skip to content

Commit

Permalink
Fix #757 (#764)
Browse files Browse the repository at this point in the history
- Improve compatibility with other mods' mixins
  • Loading branch information
FakeDomi authored Aug 25, 2024
1 parent bfa093d commit bebcdfb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ protected MixinGameMenu(Text title) {
}

@Inject(method = "initWidgets", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/widget/GridWidget;forEachChild(Ljava/util/function/Consumer;)V"), locals = LocalCapture.CAPTURE_FAILEXCEPTION)
private void onInitWidgets(CallbackInfo ci, GridWidget gridWidget, GridWidget.Adder adder, Text text) {
private void onInitWidgets(CallbackInfo ci, GridWidget gridWidget) {
if (gridWidget != null) {
final List<Widget> buttons = ((AccessorGridWidget) gridWidget).getChildren();
if (ModMenuConfig.MODIFY_GAME_MENU.getValue()) {
Expand Down

0 comments on commit bebcdfb

Please sign in to comment.