mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Send Valid Tags to Client that correlate with UUIDs found on the Server. No longer needs the Clones Data
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user