Posted August 17, 201312 yr Some quick info Line From Mod Localization File: info.tank.header.msg=\u00A76-- Tank Data -- Line In Code: (triggered in onBlockActivated) entityPlayer.addChatMessage(StatCollector.translateToLocal("info.tank.header.msg")); Problem: I've had the color code in the localization file since 1.5 and it has worked but in 1.6 it acts up only when compiled and zipped. In eclipse it properly displays "-- Tank Data --" and its orange but put it into a clean Minecraft & Forge (818) install it displays "\u00A76-- Tank Data --" and its white For some reason Eclipse uses the color code, but a release environment reads it as plain text.
August 17, 201312 yr Author Because StatCollector.translateToLocal(string) is what blocks and items used It works perfectly, except for color codes in a release environment, so I never noticed the issue while debugging. Is that object array a list of approved characters? after setting up a break point and stepping through the code I don't believe that will help. Oh well, I can hard code the colors, I only had them in the localization just in case someone wanted to change them.
August 17, 201312 yr Actually, I think this is due to addChatMessage(String), as it uses ChatMessageComponent system now.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.