mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 23:37:32 +00:00
Fix ReadNBT TagMap
This commit is contained in:
1 parent
f8b182008c
commit
0943299384
1 file changed
+2
-2
@@ -22,11 +22,11 @@ public class TagMap {
|
||||
String cloneName = nbttagcompound.getString("Clone");
|
||||
NBTTagList allUUIDs = compound.getTagList("UUIDs", 10);
|
||||
HashSet<UUID> uuids = new HashSet<UUID>();
|
||||
if(list != allUUIDs){
|
||||
if(allUUIDs != null){
|
||||
for(int j = 0; j < allUUIDs.tagCount(); j++)
|
||||
{
|
||||
NBTTagCompound uuidCompound = list.getCompoundTagAt(j);
|
||||
String uuid = nbttagcompound.getString("UUID");
|
||||
String uuid = uuidCompound.getString("UUID");
|
||||
if(!uuid.isEmpty()){
|
||||
uuids.add(UUID.fromString(uuid));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user