Change getRaw to getValue for conversion of meta

This commit is contained in:
libraryaddict 2022-01-07 21:45:55 +13:00
parent 5e165e3c97
commit 79d7533260

View File

@ -143,11 +143,11 @@ public class DisguiseAPI {
continue; continue;
} }
if (index.getDefault() == obj.getValue() || index.getDefault() == obj.getRawValue()) { if (index.getDefault() == obj.getValue() || index.getDefault() == obj.getValue()) {
continue; continue;
} }
watcher.setUnsafeData(index, obj.getRawValue()); watcher.setUnsafeData(index, obj.getValue());
// Update the meta for 0, otherwise boolean be weird // Update the meta for 0, otherwise boolean be weird
if (index == MetaIndex.ENTITY_META) { if (index == MetaIndex.ENTITY_META) {