From 46ec0d736dfbf940f7c97d34676d161e1bb5e585 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 5 May 2012 00:16:22 -0400 Subject: [PATCH] Fixed value highlighting for XRay stats --- .../java/net/h31ix/anticheat/xray/XRayTracker.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/net/h31ix/anticheat/xray/XRayTracker.java b/src/main/java/net/h31ix/anticheat/xray/XRayTracker.java index ac8a3c7..4ad2292 100644 --- a/src/main/java/net/h31ix/anticheat/xray/XRayTracker.java +++ b/src/main/java/net/h31ix/anticheat/xray/XRayTracker.java @@ -70,38 +70,38 @@ public class XRayTracker { } cs.sendMessage("--------------------["+green+"X-Ray Stats"+white+"]---------------------"); ChatColor color = ChatColor.WHITE; - if(d >= b/3 && b > 50) + if(d >= b/3 && t > 50) { color = ChatColor.RED; } cs.sendMessage(gray+"Total blocks broken: "+white+t); cs.sendMessage(gray+"Percent diamond ore: "+color+round(d,1)+"%"); color = ChatColor.WHITE; - if(g >= b/3 && b > 50) + if(g >= b/3 && t > 50) { color = ChatColor.RED; } cs.sendMessage(gray+"Percent gold ore: "+color+round(g,1)+"%"); color = ChatColor.WHITE; - if(i >= b/3 && b > 50) + if(i >= b/3 && t > 50) { color = ChatColor.RED; } cs.sendMessage(gray+"Percent iron ore: "+color+round(i,1)+"%"); color = ChatColor.WHITE; - if(c >= b/3 && b > 50) + if(c >= b/3 && t > 50) { color = ChatColor.RED; } cs.sendMessage(gray+"Percent coal ore: "+color+round(c,1)+"%"); color = ChatColor.WHITE; - if(la >= b/3 && b > 50) + if(la >= b/3 && t > 50) { color = ChatColor.RED; } cs.sendMessage(gray+"Percent lapis ore: "+color+round(la,1)+"%"); color = ChatColor.WHITE; - if(r >= b/3 && b > 50) + if(r >= b/3 && t > 50) { color = ChatColor.RED; }