This commit is contained in:
kirillsaint 2023-06-29 14:55:43 +06:00
parent ba183b0935
commit 8476e99b43
2 changed files with 1 additions and 2 deletions

View File

@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(GuiAchievement.class) @Mixin(GuiAchievement.class)
public class GuiAchievementMixin { public class GuiAchievementMixin {
@Inject(method = "updateAchievementWindow", at = @At("HEAD")) @Inject(method = "updateAchievementWindow", at = @At("HEAD"), cancellable = true)
public void removeAchievements(CallbackInfo ci) { public void removeAchievements(CallbackInfo ci) {
if(Client.getInstance().getSettingsManager().getSettingByClass(RenderMod.class, "Disable Achievements").getValBoolean()) { if(Client.getInstance().getSettingsManager().getSettingByClass(RenderMod.class, "Disable Achievements").getValBoolean()) {
ci.cancel(); ci.cancel();

View File

@ -1,7 +1,6 @@
package net.silentclient.client.utils; package net.silentclient.client.utils;
import net.minecraft.client.Minecraft; import net.minecraft.client.Minecraft;
import net.minecraft.util.ResourceLocation;
import net.silentclient.client.Client; import net.silentclient.client.Client;
import net.silentclient.client.cosmetics.StaticResourceLocation; import net.silentclient.client.cosmetics.StaticResourceLocation;
import net.silentclient.client.mixin.ducks.EntityRendererExt; import net.silentclient.client.mixin.ducks.EntityRendererExt;