Send Valid Tags to Client that correlate with UUIDs found on the Server. No longer needs the Clones Data

This commit is contained in:
KAMKEEL committed 2023-03-22 17:58:02 -04:00
1 parent 0943299384
commit 41c4fc66d0
5 files changed
+80 -24

No files matched your search

@@ -1080,6 +1080,15 @@ public class PacketHandlerServer{
TagMap tagMap = ServerTagMapController.Instance.getTagMap(tab);
NBTTagCompound compound = new NBTTagCompound();
compound.setTag("CloneTags", tagMap.writeNBT());
HashSet<Tag> validTags = TagController.getInstance().getValidTags(tagMap);
NBTTagList validTagList = new NBTTagList();
for(Tag tag : validTags){
NBTTagCompound tagCompound = new NBTTagCompound();
tag.writeNBT(tagCompound);
validTagList.appendTag(tagCompound);
}
compound.setTag("ValidTags", validTagList);
Server.sendData(player, EnumPacketClient.GUI_DATA, compound);
}
else