mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added a configurable expansion to scripts' length, adding 65535 more characters with every additional increase.
This commit is contained in:
1 parent
b4f112ee89
commit
9fc408e598
4 files changed
+68
-12
No files matched your search
@@ -320,11 +320,11 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
|
||||
public void confirmClicked(boolean flag, int i) {
|
||||
if(flag) {
|
||||
if(i == 0) {
|
||||
this.openLink("http://www.kodevelopment.nl/minecraft/customnpcs/scripting");
|
||||
this.openLink("https://www.curseforge.com/minecraft/mc-mods/customnpc-plus");
|
||||
}
|
||||
|
||||
if(i == 1) {
|
||||
this.openLink("http://www.kodevelopment.nl/customnpcs/api/");
|
||||
this.openLink("https://kamkeel.github.io/CustomNPC-Plus/");
|
||||
}
|
||||
|
||||
if(i == 2) {
|
||||
@@ -380,6 +380,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
|
||||
|
||||
if(guibutton.id == 101) {
|
||||
(this.getTextField(2)).setText(NoppesStringUtils.getClipboardContents());
|
||||
this.setScript();
|
||||
}
|
||||
|
||||
ScriptContainer container;
|
||||
@@ -427,7 +428,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
|
||||
container = (ScriptContainer)this.handler.getScripts().get(this.activeTab - 1);
|
||||
if(container != null) {
|
||||
this.setScript();
|
||||
this.AWTWindow = new GuiJTextArea(container.script).setListener(this);
|
||||
AWTWindow = new GuiJTextArea(container.script).setListener(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user