From 43b8a967f55e01401e45cf667ccaeaeda73be638 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Mon, 26 Jan 2026 19:50:37 +0100 Subject: Update 'MixinMinecraft' on Forge --- .../com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Forge/src') diff --git a/Forge/src/main/java/com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java b/Forge/src/main/java/com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java index 674acc6..86c35d4 100644 --- a/Forge/src/main/java/com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java +++ b/Forge/src/main/java/com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java @@ -3,23 +3,21 @@ package com.aizistral.nochatrestrictions.mixins; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.injection.At; import org.spongepowered.asm.mixin.injection.Inject; -import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable; import com.aizistral.nochatrestrictions.core.NCRCore; import com.aizistral.nochatrestrictions.core.WrappedSocialInteractionsService; import com.mojang.authlib.minecraft.SocialInteractionsService; import com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService; -import com.mojang.authlib.yggdrasil.YggdrasilSocialInteractionsService; -import net.minecraft.client.GameConfiguration; import net.minecraft.client.Minecraft; +import net.minecraft.client.main.GameConfig; @Mixin(Minecraft.class) public class MixinMinecraft { @Inject(method = { "func_244735_a", "createSocialInteractions" }, at = @At("RETURN"), cancellable = true) - public void onCreateSocialInteractions(YggdrasilAuthenticationService authService, GameConfiguration gameConfig, + public void onCreateSocialInteractions(YggdrasilAuthenticationService authService, GameConfig gameConfig, CallbackInfoReturnable info) { SocialInteractionsService returnedService = info.getReturnValue(); assert returnedService != null; -- cgit v1.2.3