mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-21 02:12:19 +00:00
Bunch more Get Packets
This commit is contained in:
1 parent
57e41412dd
commit
f950ba0a22
12 files changed
+265
-56
No files matched your search
@@ -1,5 +1,6 @@
|
||||
package noppes.npcs.client.gui;
|
||||
|
||||
import kamkeel.npcs.network.packets.request.dialog.DialogGetPacket;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.client.Client;
|
||||
@@ -44,7 +45,7 @@ public class SubGuiNpcDialogOption extends SubGuiInterface implements IGuiData,
|
||||
if(option.optionType == EnumOptionType.DialogOption){
|
||||
this.addButton(new GuiNpcButton(3, guiLeft + 4, guiTop + 84, "availability.selectdialog"));
|
||||
if(option.dialogId >= 0)
|
||||
Client.sendData(EnumPacketServer.DialogGet, option.dialogId);
|
||||
DialogGetPacket.getDialog(option.dialogId);
|
||||
}
|
||||
if(option.optionType == EnumOptionType.CommandBlock){
|
||||
this.addTextField(new GuiNpcTextField(4, this, this.fontRendererObj, guiLeft + 4, guiTop + 84, 248, 20, option.command));
|
||||
|
||||
Reference in new issue
Block a user