pesshown / Skilled-Client-v3

Forge Ghost client 1.8.9
28 stars 8 forks source link

Minecraft Crash #6

Open LiuzxDaniel opened 2 months ago

LiuzxDaniel commented 2 months ago

Macbook M1 Max Prism Launcher

Details: Minecraft Version: 1.8.9 Operating System: Mac OS X (x86_64) version 10.16 Java Version: 1.8.0_202, Oracle Corporation Java VM Version: Java HotSpot(TM) 64-Bit Server VM (mixed mode), Oracle Corporation Memory: 2069714576 bytes (1973 MB) / 2334130176 bytes (2226 MB) up to 7635730432 bytes (7282 MB) JVM Flags: 3 total; -Xverify:none -Xms2048m -Xmx8192m IntCache: cache: 0, tcache: 0, allocated: 0, tallocated: 0 FML: MCP 9.19 Powered by Forge 11.15.1.2318 4 mods loaded, 4 mods active States: 'U' = Unloaded 'L' = Loaded 'C' = Constructed 'H' = Pre-initialized 'I' = Initialized 'J' = Post-initialized 'A' = Available 'D' = Disabled 'E' = Errored UCHI mcp{9.19} [Minecraft Coder Pack] (minecraft.jar) UCHI FML{8.0.99.99} [Forge Mod Loader] (forge-1.8.9-11.15.1.2318-1.8.9-universal.jar) UCHI Forge{11.15.1.2318} [Minecraft Forge] (forge-1.8.9-11.15.1.2318-1.8.9-universal.jar) UCHE autogg{1.0} [autogg] (Skilled V3.jar) Loaded coremods (and transformers): [14:53:25] [Client thread/INFO] [STDOUT]: [net.minecraft.init.Bootstrap:func_179870_a:529]: #@!@# Game crashed! Crash report saved to: #@!@# /Users/lzx/Library/Application Support/PrismLauncher/instances/1.8.9/.minecraft/crash-reports/crash-2024-07-08_14.53.25-client.txt AL lib: (EE) alc_cleanup: 1 device not closed Exit code: 255

nnwtfs commented 2 weeks ago

AutoGG Github went down replace the code in AutoGG.java with this

    package me.vene.skilled.autogg;

import java.io.IOException;
import net.minecraft.client.Minecraft;
import net.minecraft.util.EnumChatFormatting;
import net.minecraftforge.client.event.ClientChatReceivedEvent;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;

public class AutoGG {
   public static String unformattedMessage;
   private String[] triggers;
   private Minecraft mc = Minecraft.func_71410_x();

   public AutoGG() throws IOException {
      String a = "1st Killer - \n1st Place - \nWinner: \n - Damage Dealt - \nWinning Team -\n1st - \nWinners: \nWinner: \nWinning Team: \n won the game!\nTop Seeker: \n1st Place: \nLast team standing!\nWinner #1 (\nTop Survivors\nWinners - \nSumo Duel - ";
      this.triggers = a.split("\n");
   }

   @SubscribeEvent
   public void onChat(ClientChatReceivedEvent event) throws InterruptedException {
      unformattedMessage = event.message.func_150260_c();
      unformattedMessage = EnumChatFormatting.func_110646_a(unformattedMessage);

      for(int i = 0; i < this.triggers.length; ++i) {
         if (unformattedMessage.contains(this.triggers[i])) {
            this.mc.field_71439_g.func_71165_d("/achat gg");
            break;
         }
      }

   }
}

the triggers are set manually, since you cant get them from the Github anymore