Skip to content

Commit

Permalink
Added on : fix POB import bug
Browse files Browse the repository at this point in the history
Made empty socketgroups not create, and if SG has no active gem put the first gem available.
  • Loading branch information
karakasis committed Mar 8, 2019
1 parent d71eab9 commit e676bf1
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion src/poe/level/fx/BuildsPanel_Controller.java
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,13 @@ public Build addNewBuildFromPOB(String buildName, String className, String ascen
}
sg.getGems().add(gem);//***check line 324 in GemsPanel_Controller;
}
pobBuild.getSocketGroup().add(sg);
if(!sg.getGems().isEmpty()){
pobBuild.getSocketGroup().add(sg);
if(sg.getActiveGem() == null){
sg.setActiveGem(sg.getGems().get(0));
}
}

}
//but we also need to link the build to the build panel
//we do this by load method
Expand Down
2 changes: 1 addition & 1 deletion src/poe/level/fx/POELevelFx.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public class POELevelFx extends Application {
/*************************************************************************************/
/* Update this when you are pushing a new release version, must match the GitHub release name!
**************************************************************************************/
public static final String version = "v0.71-beta";
public static final String version = "v0.72-beta";


public static boolean DEBUG = false;
Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.71-beta
v0.72-beta

0 comments on commit e676bf1

Please sign in to comment.