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;