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:
Kamron Vaswani authored and GitHub committed 2022-04-09 01:20:53 -04:00
commit 32f89f8e92
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() {