Additional method for 76f6d43

This commit is contained in:
Electroblob
2018-02-26 18:37:09 +00:00
parent 1581d18a43
commit 13444f1de3
@@ -887,6 +887,13 @@ public final class WizardryUtilities {
return list;
}
/** Removes the UUID with the given key from the given NBT tag, if any. Why this doesn't exist in vanilla I have
* no idea. */
public static void removeUniqueId(NBTTagCompound tag, String key){
tag.removeTag(key + "Most");
tag.removeTag(key + "Least");
}
// TODO: Backport: It has recently become apparent that storing UUIDs as strings is not good practice, so backport
// these two