From 73d99e410be2bcd405d531fd35c738b1f1364abe Mon Sep 17 00:00:00 2001 From: Mr_Little_Kitty Date: Sat, 5 Nov 2016 15:29:00 -0700 Subject: [PATCH] Actually fixed the issue with cull time and servers that have it disabled --- .../snitch_master/handlers/ChatSnitchParser.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nuclearcat1337/snitch_master/handlers/ChatSnitchParser.java b/src/main/java/com/gmail/nuclearcat1337/snitch_master/handlers/ChatSnitchParser.java index 109939b..ad8e716 100644 --- a/src/main/java/com/gmail/nuclearcat1337/snitch_master/handlers/ChatSnitchParser.java +++ b/src/main/java/com/gmail/nuclearcat1337/snitch_master/handlers/ChatSnitchParser.java @@ -105,11 +105,11 @@ private Snitch parseSnitchFromJaList(Matcher matcher) int x = Integer.parseInt(matcher.group(2)); int y = Integer.parseInt(matcher.group(3)); int z = Integer.parseInt(matcher.group(4)); - Double cullTime; + double cullTime; String cullTimeString = matcher.group(5); if(cullTimeString == null || cullTimeString.isEmpty()) - cullTime = null; + cullTime = Double.NaN; else cullTime = Double.parseDouble(cullTimeString);