mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Added updateClient() function to ScriptNpc.
This commit is contained in:
1 parent
73db2da124
commit
32792e7d6f
4 files changed
+14
-5
No files matched your search
@@ -313,10 +313,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
LinkedNpcController.Instance.loadNpcData(this);
|
||||
}
|
||||
if(updateClient){
|
||||
NBTTagCompound compound = writeSpawnData();
|
||||
compound.setInteger("EntityId", getEntityId());
|
||||
Server.sendAssociatedData(this, EnumPacketClient.UPDATE_NPC, compound);
|
||||
updateClient = false;
|
||||
this.updateClient();
|
||||
}
|
||||
if(updateAI){
|
||||
updateTasks();
|
||||
@@ -365,6 +362,14 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
((JobBard)jobInterface).onLivingUpdate();
|
||||
}
|
||||
}
|
||||
|
||||
public void updateClient() {
|
||||
NBTTagCompound compound = writeSpawnData();
|
||||
compound.setInteger("EntityId", getEntityId());
|
||||
Server.sendAssociatedData(this, EnumPacketClient.UPDATE_NPC, compound);
|
||||
updateClient = false;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean interact(EntityPlayer player) {
|
||||
|
||||
Reference in new issue
Block a user