mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 09:37:29 +00:00
Merge pull request #159 from KAMKEEL/codex/send-full-party-nbt-updates-to-clientcachehandler
Send full Party NBT on updates
This commit is contained in:
2 files changed
+5
No files matched your search
@@ -9,6 +9,7 @@ import kamkeel.npcs.network.enums.EnumSyncType;
|
||||
import kamkeel.npcs.network.packets.data.LoginPacket;
|
||||
import kamkeel.npcs.network.packets.data.large.SyncEffectPacket;
|
||||
import kamkeel.npcs.network.packets.data.large.SyncPacket;
|
||||
import kamkeel.npcs.network.packets.request.party.PartyInfoPacket;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.entity.player.EntityPlayerMP;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
@@ -97,6 +98,9 @@ public class SyncController {
|
||||
|
||||
DBCAddon.instance.syncPlayer(player);
|
||||
syncPlayerData(player, false);
|
||||
|
||||
// Send party information to the player on login
|
||||
PartyInfoPacket.sendPartyData(player);
|
||||
}
|
||||
|
||||
public static NBTTagCompound workbenchNBT() {
|
||||
|
||||
@@ -51,6 +51,7 @@ public final class PartySavePacket extends AbstractPacket {
|
||||
if (playerData.partyUUID != null) {
|
||||
Party party = PartyController.Instance().getParty(playerData.partyUUID);
|
||||
party.readClientNBT(ByteBufUtils.readNBT(in));
|
||||
PartyController.Instance().pingPartyUpdate(party);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user