mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 20:44:08 +00:00
Fix Dialog Options not popping up
This commit is contained in:
1 parent
15c0839a93
commit
95e9d4b9c1
1 file changed
+3
-7
@@ -5,16 +5,18 @@ import net.minecraft.client.gui.GuiScreen;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import noppes.npcs.client.Client;
|
||||
import noppes.npcs.client.NoppesUtil;
|
||||
import noppes.npcs.client.gui.SubGuiColorSelector;
|
||||
import noppes.npcs.client.gui.select.GuiDialogSelection;
|
||||
import noppes.npcs.client.gui.util.*;
|
||||
import noppes.npcs.constants.EnumPacketServer;
|
||||
import noppes.npcs.controllers.data.Dialog;
|
||||
import noppes.npcs.controllers.data.DialogOption;
|
||||
import noppes.npcs.entity.EntityNPCInterface;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
|
||||
public class GuiNPCDialogNpcOptions extends GuiNPCInterface2 implements GuiSelectionListener,IGuiData{
|
||||
public class GuiNPCDialogNpcOptions extends GuiNPCInterface2 implements GuiSelectionListener, IGuiData{
|
||||
private GuiScreen parent;
|
||||
private HashMap<Integer, DialogOption> data = new HashMap<Integer,DialogOption>();
|
||||
|
||||
@@ -46,12 +48,7 @@ public class GuiNPCDialogNpcOptions extends GuiNPCInterface2 implements GuiSelec
|
||||
private int selectedSlot;
|
||||
protected void actionPerformed(GuiButton guibutton) {
|
||||
int id = guibutton.id;
|
||||
|
||||
if (id == 1) {
|
||||
NoppesUtil.openGUI(player, parent);
|
||||
}
|
||||
if (id >= 0 && id < 20) {
|
||||
close();
|
||||
selectedSlot = id;
|
||||
int dialogID = -1;
|
||||
if(data.containsKey(id))
|
||||
@@ -86,5 +83,4 @@ public class GuiNPCDialogNpcOptions extends GuiNPCInterface2 implements GuiSelec
|
||||
data.put(pos, dialog);
|
||||
initGui();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user