mirror of
https://github.com/Aizistral-Studios/No-Chat-Restrictions.git
synced 2026-05-14 12:53:32 +08:00
Remove obfuscated method names from mixins
This commit is contained in:
@@ -16,7 +16,7 @@ import net.minecraft.client.main.GameConfig;
|
||||
@Mixin(value = Minecraft.class, remap = false)
|
||||
public class MixinMinecraft {
|
||||
|
||||
@Inject(method = { "m_193585_", "createUserApiService" }, at = @At("RETURN"), cancellable = true)
|
||||
@Inject(method = "createUserApiService", at = @At("RETURN"), cancellable = true)
|
||||
public void onCreateUserApi(YggdrasilAuthenticationService authService, GameConfig gameConfig,
|
||||
CallbackInfoReturnable<UserApiService> info) {
|
||||
UserApiService returnedService = info.getReturnValue();
|
||||
@@ -26,7 +26,7 @@ public class MixinMinecraft {
|
||||
NCRCore.LOGGER.info("Successfully supplanted UserApiService with a wrapped version.");
|
||||
}
|
||||
|
||||
@Inject(method = { "m_294837_", "isNameBanned" }, at = @At("HEAD"), cancellable = true)
|
||||
@Inject(method = "isNameBanned", at = @At("HEAD"), cancellable = true)
|
||||
public void onCheckNameBan(CallbackInfoReturnable<Boolean> info) {
|
||||
info.setReturnValue(Boolean.FALSE);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user