From 69d003af2d75a2ea511a3273b62d1a2e29fc8a9a Mon Sep 17 00:00:00 2001 From: cerevisiae Date: Tue, 7 Dec 2010 22:18:54 -0600 Subject: [PATCH] Fixing WordWrap --- vMinecraftChat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vMinecraftChat.java b/vMinecraftChat.java index c0dab6a04..76d30dca7 100644 --- a/vMinecraftChat.java +++ b/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;