fix mixin crash :p
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m13s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m13s
This commit is contained in:
parent
57a3300ce6
commit
9fe88a6440
2 changed files with 4 additions and 4 deletions
|
@ -14,6 +14,8 @@ import de.com.baseband.client.feature.modules.render.NoRender;
|
|||
import de.com.baseband.client.feature.modules.render.SwingSpeed;
|
||||
import de.com.baseband.client.util.adapt.FieldFinder;
|
||||
import de.com.baseband.client.util.net.ScreenshotHelper;
|
||||
import de.com.baseband.prod.LoadHandler;
|
||||
import de.tudbut.tools.Tools;
|
||||
import net.minecraft.client.gui.ChatLine;
|
||||
import net.minecraft.client.gui.Gui;
|
||||
import net.minecraft.client.multiplayer.WorldClient;
|
||||
|
@ -150,6 +152,8 @@ public class MixinProxy {
|
|||
}
|
||||
|
||||
public static void minecraftOnInit() {
|
||||
if(!Tools.firstNonNull(LoadHandler.data.getBoolean("load-baseband"), true))
|
||||
return;
|
||||
BaseBand.onInit();
|
||||
}
|
||||
|
||||
|
|
|
@ -1,8 +1,6 @@
|
|||
package de.com.baseband.client.mixin.mixins;
|
||||
|
||||
import de.com.baseband.client.mixin.MixinProxy;
|
||||
import de.com.baseband.prod.LoadHandler;
|
||||
import de.tudbut.tools.Tools;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.gui.toasts.GuiToast;
|
||||
|
@ -16,8 +14,6 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||
public class MixinMinecraft {
|
||||
@Inject(method = "init", at = @At("RETURN"))
|
||||
private void onInit(CallbackInfo ci) {
|
||||
if(!Tools.firstNonNull(LoadHandler.data.getBoolean("load-baseband"), true))
|
||||
return;
|
||||
MixinProxy.minecraftOnInit();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue