mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-25 18:04:30 +00:00
Linked Item Scripts + Effect Script Fix
This commit is contained in:
1 parent
5cbab2581c
commit
f84dd5477d
8 files changed
+532
-36
No files matched your search
@@ -4,6 +4,7 @@ import kamkeel.npcs.network.PacketClient;
|
||||
import kamkeel.npcs.network.packets.request.linked.LinkedItemSavePacket;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import noppes.npcs.client.gui.global.GuiNPCManageLinked;
|
||||
import noppes.npcs.client.gui.script.GuiScriptLinkedItem;
|
||||
import noppes.npcs.client.gui.util.*;
|
||||
import noppes.npcs.controllers.data.LinkedItem;
|
||||
|
||||
@@ -185,6 +186,12 @@ public class SubGuiLinkedItem extends SubGuiInterface implements ITextfieldListe
|
||||
if (id == -5) {
|
||||
close();
|
||||
return;
|
||||
} else if (id == -2) {
|
||||
PacketClient.sendClient(new LinkedItemSavePacket(linkedItem.writeToNBT(false), originalName));
|
||||
GuiScriptLinkedItem scriptGUI = new GuiScriptLinkedItem(this.parent, linkedItem);
|
||||
scriptGUI.setWorldAndResolution(mc, width, height);
|
||||
scriptGUI.initGui();
|
||||
mc.currentScreen = scriptGUI;
|
||||
} else if (id == 9) {
|
||||
// OPEN COLOR PICKER
|
||||
} else if (id == 10) {
|
||||
|
||||
Reference in new issue
Block a user