From 6fba5cb0201dc6260b83f9c3217081680f43dbbb Mon Sep 17 00:00:00 2001 From: "Kristian S. Stangeland" Date: Wed, 31 Jul 2013 05:21:16 +0200 Subject: [PATCH] Don't reset the ReportType static fields. This is pointless. This may prevent certain problems on MCPC+. --- .../main/java/com/comphenix/protocol/CleanupStaticMembers.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ProtocolLib/src/main/java/com/comphenix/protocol/CleanupStaticMembers.java b/ProtocolLib/src/main/java/com/comphenix/protocol/CleanupStaticMembers.java index dd0655cc..5688e8eb 100644 --- a/ProtocolLib/src/main/java/com/comphenix/protocol/CleanupStaticMembers.java +++ b/ProtocolLib/src/main/java/com/comphenix/protocol/CleanupStaticMembers.java @@ -115,7 +115,8 @@ class CleanupStaticMembers { // Only check static non-primitive fields. We also skip strings. if (Modifier.isStatic(field.getModifiers()) && - !type.isPrimitive() && !type.equals(String.class)) { + !type.isPrimitive() && !type.equals(String.class) && + !type.equals(ReportType.class)) { try { setFinalStatic(field, null);