From 79d75332600bac10b857d7bf4cecf64fd0b6d0ac Mon Sep 17 00:00:00 2001 From: libraryaddict Date: Fri, 7 Jan 2022 21:45:55 +1300 Subject: [PATCH] Change getRaw to getValue for conversion of meta --- .../src/main/java/me/libraryaddict/disguise/DisguiseAPI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java index 7dd1852d..85948b7f 100644 --- a/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java +++ b/plugin/src/main/java/me/libraryaddict/disguise/DisguiseAPI.java @@ -143,11 +143,11 @@ public class DisguiseAPI { continue; } - if (index.getDefault() == obj.getValue() || index.getDefault() == obj.getRawValue()) { + if (index.getDefault() == obj.getValue() || index.getDefault() == obj.getValue()) { continue; } - watcher.setUnsafeData(index, obj.getRawValue()); + watcher.setUnsafeData(index, obj.getValue()); // Update the meta for 0, otherwise boolean be weird if (index == MetaIndex.ENTITY_META) {