Changed Player Dialog Events to work like NPC Dialog Events

This commit is contained in:
Vidal committed 2026-01-25 21:13:42 -03:00
1 parent 9ebaf780e1
commit 92e69bb270
3 files changed
+23 -12

No files matched your search

@@ -241,7 +241,7 @@ public class NoppesUtilServer {
if (EventHooks.onNPCDialog(npc, player, dialog.id, optionId, dialog)) {
return;
}
if (EventHooks.onDialogOpen(player, new DialogEvent.DialogOpen((IPlayer) NpcAPI.Instance().getIEntity(player), dialog))) {
if (EventHooks.onDialogOpen(player, new DialogEvent.DialogOpen((IPlayer) NpcAPI.Instance().getIEntity(player), dialog.id, optionId, dialog))) {
return;
}
}