Quest Get Packet

This commit is contained in:
Kam committed 2025-02-02 18:14:52 -05:00
1 parent f950ba0a22
commit f314d9d826
6 files changed
+76 -20

No files matched your search

@@ -385,15 +385,6 @@ public class PacketHandlerServer{
else if(type == EnumPacketServer.FactionsGet){
NoppesUtilServer.sendFactionDataAll(player);
}
else if(type == EnumPacketServer.QuestGet){
Quest quest = QuestController.Instance.quests.get(buffer.readInt());
if(quest != null){
NBTTagCompound compound = new NBTTagCompound();
if(quest.hasNewQuest())
compound.setString("NextQuestTitle", quest.getNextQuest().title);
GuiDataPacket.sendGuiData(player, quest.writeToNBT(compound));
}
}
else if(type == EnumPacketServer.FactionGet){
NBTTagCompound compound = new NBTTagCompound();
Faction faction = FactionController.getInstance().get(buffer.readInt());