Unable to request Botania potions by name via Corporea Index
Lashriel opened this issue · 6 comments
Minecraft version: 1.7.10 (as if that needed explanation)
Mod version: Latest (R1.7-210)
Forge version: Latest 1.7.10 (10.13.4.1492)
OS: Arch Linux
Tested in single/multiplayer: Singleplayer.
Steps to reproduce:
- Create a Corporea Index
- Attach it to a network and add a chest.
- Put any Botania potion in the chest.
- Request said potion, via tab completion (in my case, Flask of Revitalization (6)), from the Index.
- Crash, with message "Connection Lost, Illegal Characters in Chat"
- Log back in and repeat request, this time typing the full name manually.
The item will not be given, and the Corporea Index will not see any of them in its network.
Suspected reason:
Special characters are being used to make the number 6 bold when tab-completion is used to get the item name. These characters are not allowed in chat and cause a crash. Furthermore, use of these characters makes it so the item name is not recognized when manually typed without including them.
Suggested fix:
Remove special characters from the names of potions.
ItemBrewBase.getItemStackDisplayName
The brews use EnumChatFormatting.BOLD, which is from base MC, don't know what that adds in there though.
Well, I know that uses a section sign to indicate formatting (specifically §l for bold) and I can't type that into chat, so...
This is all @soundlogic2236's fault :V