mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 08:27:45 +00:00
Merge pull request #45 from c0508383/master
Important script hook fix, additions to dialog and dialog closed hooks for NPCs
This commit is contained in:
8 files changed
+50
-16
No files matched your search
@@ -399,7 +399,7 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
Server.sendData((EntityPlayerMP)player, EnumPacketClient.QUEST_COMPLETION, data.quest.writeToNBT(new NBTTagCompound()));
|
||||
}
|
||||
else if (dialog != null){
|
||||
NoppesUtilServer.openDialog(player, this, dialog);
|
||||
NoppesUtilServer.openDialog(player, this, dialog, 0);
|
||||
}
|
||||
else if(roleInterface != null)
|
||||
roleInterface.interact(player);
|
||||
@@ -1062,7 +1062,6 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
|
||||
jobInterface.reset();
|
||||
|
||||
EventHooks.onNPCInit(this);
|
||||
script.callScript(EnumScriptType.INIT);
|
||||
}
|
||||
|
||||
public void onCollide() {
|
||||
|
||||
Reference in new issue
Block a user