|
| 1 | +/* |
| 2 | + * Copyright (c) 2014-2026 Wurst-Imperium and contributors. |
| 3 | + * |
| 4 | + * This source code is subject to the terms of the GNU General Public |
| 5 | + * License, version 3. If a copy of the GPL was not distributed with this |
| 6 | + * file, You can obtain one at: https://www.gnu.org/licenses/gpl-3.0.txt |
| 7 | + */ |
| 8 | +package net.wurstclient.mixin; |
| 9 | + |
| 10 | +import org.spongepowered.asm.mixin.Final; |
| 11 | +import org.spongepowered.asm.mixin.Mixin; |
| 12 | +import org.spongepowered.asm.mixin.Mutable; |
| 13 | +import org.spongepowered.asm.mixin.Shadow; |
| 14 | +import org.spongepowered.asm.mixin.injection.At; |
| 15 | +import org.spongepowered.asm.mixin.injection.Inject; |
| 16 | +import org.spongepowered.asm.mixin.injection.callback.CallbackInfo; |
| 17 | + |
| 18 | +import net.minecraft.client.gui.screens.LoadingOverlay; |
| 19 | +import net.minecraft.util.ARGB; |
| 20 | + |
| 21 | +@Mixin(LoadingOverlay.class) |
| 22 | +public abstract class LoadingOverlayMixin |
| 23 | +{ |
| 24 | + @Shadow |
| 25 | + @Final |
| 26 | + @Mutable |
| 27 | + private static int LOGO_BACKGROUND_COLOR; |
| 28 | + |
| 29 | + @Shadow |
| 30 | + @Final |
| 31 | + @Mutable |
| 32 | + private static int LOGO_BACKGROUND_COLOR_DARK; |
| 33 | + |
| 34 | + @Inject(method = "<clinit>", at = @At("TAIL")) |
| 35 | + private static void onClassInit(CallbackInfo ci) |
| 36 | + { |
| 37 | + int black = ARGB.color(255, 0, 0, 0); |
| 38 | + LOGO_BACKGROUND_COLOR = black; |
| 39 | + LOGO_BACKGROUND_COLOR_DARK = black; |
| 40 | + } |
| 41 | +} |
0 commit comments