mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 07:11:31 +01:00
fix
This commit is contained in:
parent
adc547e61a
commit
49b00c4080
@ -113,17 +113,19 @@ public abstract class MinecraftMixin {
|
||||
|
||||
@Inject(method = "displayGuiScreen", at = @At("RETURN"), cancellable = true)
|
||||
public void displayGuiScreenInject(GuiScreen guiScreenIn, CallbackInfo ci) {
|
||||
if(guiScreenIn != null) {
|
||||
Client.logger.info("Opening menu: " + guiScreenIn.getClass().toString());
|
||||
}
|
||||
if(Client.backgroundPanorama == null) {
|
||||
Client.backgroundPanorama = new BackgroundPanorama(Minecraft.getMinecraft());
|
||||
}
|
||||
if(guiScreenIn instanceof GuiMainMenu) {
|
||||
displayGuiScreen(new net.silentclient.client.gui.minecraft.GuiMainMenu());
|
||||
return;
|
||||
}
|
||||
if(guiScreenIn instanceof GuiIngameMenu) {
|
||||
displayGuiScreen(new net.silentclient.client.gui.minecraft.GuiIngameMenu());
|
||||
return;
|
||||
}
|
||||
if(guiScreenIn != null) {
|
||||
Client.logger.info("Opening menu: " + guiScreenIn.getClass().toString());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user