mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 15:49:43 +00:00
Important fix to some NPC hook scripts crashing, added option and dialog object fields to local NPC dialog and NPC dialog closed scripts
This commit is contained in:
1 parent
4abe8dca92
commit
65bb3b5939
8 files changed
+50
-16
No files matched your search
@@ -271,7 +271,7 @@ public class NoppesUtilPlayer {
|
||||
Server.sendData(player, EnumPacketClient.GUI_CLOSE);
|
||||
}
|
||||
else if(option.optionType == EnumOptionType.DialogOption){
|
||||
NoppesUtilServer.openDialog(player, npc, option.getDialog());
|
||||
NoppesUtilServer.openDialog(player, npc, option.getDialog(), optionId+1);
|
||||
}
|
||||
else if(option.optionType == EnumOptionType.CommandBlock){
|
||||
Server.sendData(player, EnumPacketClient.GUI_CLOSE);
|
||||
|
||||
Reference in new issue
Block a user