1
0
mirror of https://github.com/mcMMO-Dev/mcMMO.git synced 2026-02-20 18:53:11 +01:00

Changed how prefix length is calculated

This commit is contained in:
cerevisiae
2010-12-09 23:02:53 -06:00
parent 8085b43258
commit a6de66f825
2 changed files with 7 additions and 7 deletions

View File

@@ -110,7 +110,7 @@ public class vMinecraftChat {
//Output: int: The length on the screen of a string
//Use: Finds the length on the screen of a string. Ignores colors.
//=====================================================================
private static int msgLength(String str){
public static int msgLength(String str){
int length = 0;
//Loop through all the characters, skipping any color characters
//and their following color codes