mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 18:29:05 +00:00
SyncController Fixes
This commit is contained in:
1 parent
5d308b1f56
commit
ee8527f261
6 files changed
+17
-19
No files matched your search
@@ -290,17 +290,17 @@ public class NoppesUtilPlayer {
|
||||
if(npc.roleInterface != null)
|
||||
npc.roleInterface.interact(player);
|
||||
else
|
||||
Server.sendData(player, EnumPacketClient.GUI_CLOSE);
|
||||
PacketUtil.closeGUI(player, -1 , new NBTTagCompound());
|
||||
}
|
||||
else if(option.optionType == EnumOptionType.DialogOption){
|
||||
NoppesUtilServer.openDialog(player, npc, option.getDialog(), optionId+1);
|
||||
}
|
||||
else if(option.optionType == EnumOptionType.CommandBlock){
|
||||
Server.sendData(player, EnumPacketClient.GUI_CLOSE);
|
||||
PacketUtil.closeGUI(player, -1 , new NBTTagCompound());
|
||||
NoppesUtilServer.runCommand(player, npc.getCommandSenderName(), option.command);
|
||||
}
|
||||
else
|
||||
Server.sendData(player, EnumPacketClient.GUI_CLOSE);
|
||||
PacketUtil.closeGUI(player, -1 , new NBTTagCompound());
|
||||
}
|
||||
|
||||
public static void updateQuestLogData(ByteBuf buffer, EntityPlayerMP player) throws IOException {
|
||||
|
||||
Reference in new issue
Block a user