Yeah I know. I just had a lot of unhelpful code in my event class, so I switched the class, not realizing that it would be pointless, which it very much is.
I believe this is whats wrong with it. Only thing is, I use a jar dependency which is not a mod, and I cannot figure out how to reobfuscate my mod and include the dependency. I looked up online how to make a "fat jar," which has worked except for obfuscation..
I have coded a mod in order to get the IP of a Minecraft server and do some things with that. So far, everything works except this line of code:
It always spews out this error:
Hastebin Link for easier reading
EDIT:
Also here is the Gradle mappings and stuff, if this shall help:
EnumChatFormatting color;
@SubscribeEvent
public void partyInvite(final ClientChatReceivedEvent e) {
EntityPlayerSP p = Minecraft.getMinecraft().thePlayer;
if (ChatMod.toggle) {
if (ChatMod.mineplex) {
String otherMsg = e.message.getFormattedText();
if (otherMsg.startsWith("§9Party>")) {
String noBlue = otherMsg;
noBlue = noBlue.replace("§9", "§5");
e.setCanceled(true);
p.addChatMessage(new ChatComponentText(noBlue));
return;
}
}
}
}
I cannot change the color §9 to §5 whilst keeping the rest of the colors the same. Any help would be greatly appreciated!
3 replies
Important Information
By using this site, you agree to our Terms of Use.