浏览代码

Fixing WordWrap

cerevisiae 14 年之前
父节点
当前提交
69d003af2d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      vMinecraftChat.java

+ 1 - 1
vMinecraftChat.java

@@ -61,7 +61,7 @@ public class vMinecraftChat {
 
     		//Loop through the words finding their length and increasing
     		//j, the end point for the sub string
-    		while(split.get(0) != null && len <= lineLength && !split.isEmpty())
+    		while(!split.isEmpty() && split.get(0) != null && len <= lineLength)
     		{
     			int wordLength = msgLength(split.get(0)) + 4;