mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-20 20:22:37 +00:00
Fix Profile Tab Bugging out
This commit is contained in:
1 parent
64bb024e61
commit
ccc16aa1ac
3 files changed
+7
-7
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ plugins {
|
||||
id 'idea'
|
||||
}
|
||||
|
||||
version = "1.9.4-beta3.1"
|
||||
version = "1.9.4-beta3.2"
|
||||
group= "kamkeel.customnpc-plus"
|
||||
archivesBaseName = "CustomNPC-Plus"
|
||||
|
||||
|
||||
@@ -79,23 +79,23 @@ public class GuiCNPCInventory extends GuiNPCInterface {
|
||||
@Override
|
||||
protected void actionPerformed(GuiButton guibutton){
|
||||
if (guibutton.id <= -100) {
|
||||
if (guibutton.id == -100 && activeTab != 0) {
|
||||
if (guibutton.id == -100 && activeTab != -100) {
|
||||
activeTab = -100;
|
||||
mc.displayGuiScreen(new GuiQuestLog());
|
||||
}
|
||||
if (guibutton.id == -101 && activeTab != 1) {
|
||||
if (guibutton.id == -101 && activeTab != -101) {
|
||||
activeTab = -101;
|
||||
mc.displayGuiScreen(new GuiParty());
|
||||
}
|
||||
if (guibutton.id == -102 && activeTab != 2) {
|
||||
if (guibutton.id == -102 && activeTab != -102) {
|
||||
activeTab = -102;
|
||||
mc.displayGuiScreen(new GuiFaction());
|
||||
}
|
||||
if (guibutton.id == -103 && activeTab != 3) {
|
||||
if (guibutton.id == -103 && activeTab != -103) {
|
||||
activeTab = -103;
|
||||
mc.displayGuiScreen(new GuiSettings());
|
||||
}
|
||||
if (guibutton.id == -104 && activeTab != 4) {
|
||||
if (guibutton.id == -104 && activeTab != -104) {
|
||||
activeTab = -104;
|
||||
mc.displayGuiScreen(new GuiProfiles());
|
||||
}
|
||||
|
||||
@@ -133,7 +133,7 @@ public class GuiProfiles extends GuiCNPCInventory implements IGuiData {
|
||||
if(guibutton instanceof AbstractTab)
|
||||
return;
|
||||
|
||||
if (guibutton.id >= 100 && guibutton.id <= 105) {
|
||||
if (guibutton.id <= -100) {
|
||||
super.actionPerformed(guibutton);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user