Unformatted number for "not enough EMC" message when extracting from an EMC Link
James103 opened this issue ยท 1 comments
As of Project Expansion 1.0.9 for Minecraft 1.18.2, when attempting to extract items from an EMC Link but without having enough EMC to extract the item, the message "You do not have enough emc to purchase this; you need %s" is displayed, where %s
is the EMC value of the item.
However, this value is displayed raw, with no formatting whatsoever.
Example when extracting an item worth 1.23 Million EMC: "You do not have enough emc to purchase this; you need 1234567"
Corrected: "You do not have enough emc to purchase this; you need 1.23 Million"
This is because there are still some instances where String.valueOf
is used to format a (large) EMC value, where EMCFormat.format
should be used.
Example:
Non-example: