Save NPC Quick Tags properly on Close

This commit is contained in:
Kam committed 2023-06-01 12:29:16 -04:00
1 parent 01339e7baf
commit ff5e7de1be
2 files changed
+5 -7

No files matched your search

@@ -172,6 +172,10 @@ public class GuiNpcMobSpawnerAdd extends GuiNPCInterface implements GuiYesNoCall
@Override
public void subGuiClosed(SubGuiInterface subgui) {
if(subgui instanceof SubGuiClonerNPCTags){
close();
return;
}
initGui();
}
@@ -86,6 +86,7 @@ public class SubGuiClonerNPCTags extends SubGuiInterface implements IGuiData,ISc
tagNames.clear();
}
if (guibutton.id == 66) {
save();
close();
}
initGui();
@@ -154,11 +155,4 @@ public class SubGuiClonerNPCTags extends SubGuiInterface implements IGuiData,ISc
}
return list;
}
@Override
public void close() {
save();
super.close();
}
}