aboutsummaryrefslogtreecommitdiffstats
path: root/Forge/src/main
diff options
context:
space:
mode:
authorAizistral2026-01-26 19:50:37 +0100
committerAizistral2026-01-26 19:50:37 +0100
commit43b8a967f55e01401e45cf667ccaeaeda73be638 (patch)
tree952085ed4d78b26547ddb898c1618057ec1db842 /Forge/src/main
parent9a6200df1b55b1e770f2b3ee620e355671430aa3 (diff)
Update 'MixinMinecraft' on Forge
Diffstat (limited to 'Forge/src/main')
-rw-r--r--Forge/src/main/java/com/aizistral/nochatrestrictions/mixins/MixinMinecraft.java6
1 files changed, 2 insertions, 4 deletions
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<SocialInteractionsService> info) {
SocialInteractionsService returnedService = info.getReturnValue();
assert returnedService != null;