mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 21:17:32 +00:00
OOps wrong logic
This commit is contained in:
1 parent
bf858a7a1a
commit
a4112008bd
1 file changed
+1
-1
@@ -384,7 +384,7 @@ public class GuiScriptInterface extends GuiNPCInterface implements GuiYesNoCallb
|
||||
private GuiScriptTextArea getActiveScriptArea() {
|
||||
if (this.activeTab > 0) {
|
||||
int idx = this.activeTab - 1;
|
||||
if (idx >= 0 && idx < textAreas.size())
|
||||
if (textAreas.containsKey(idx))
|
||||
return textAreas.get(idx);
|
||||
}
|
||||
return null;
|
||||
|
||||
Reference in new issue
Block a user