Use getRawValue() instead of getValue(), fixes #520

This commit is contained in:
libraryaddict
2020-11-02 04:05:36 +13:00
parent a9bec1ef93
commit 4ef142b098
5 changed files with 12 additions and 10 deletions

View File

@@ -1858,7 +1858,7 @@ public class ReflectionManager {
indexes.remove(flagType);
Object ourValue = ReflectionManager.convertInvalidMeta(flagType.getDefault());
Object nmsValue = ReflectionManager.convertInvalidMeta(watch.getValue());
Object nmsValue = ReflectionManager.convertInvalidMeta(watch.getRawValue());
if (ourValue.getClass() != nmsValue.getClass()) {
if (!loggedName) {