Skip to content

Commit

Permalink
Minor optimization made to the 'abilities' tag existence check.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Iverson <[email protected]>
  • Loading branch information
iversc committed Oct 29, 2011
1 parent 9870f98 commit 3b51e03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
Binary file modified bin/minecraftSeed/MinecraftSeed.class
Binary file not shown.
12 changes: 3 additions & 9 deletions src/minecraftSeed/MinecraftSeed.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public class MinecraftSeed implements ActionListener {
private JButton btnSave;
private String selectedFilePath;

private final String version = "1.6.1";
private final String version = "1.6.2";
private JCheckBox cbHardcore;

public MinecraftSeed()
Expand Down Expand Up @@ -367,14 +367,8 @@ public void actionPerformed(ActionEvent arg0) {

//The reason "Player" is also used here is to make sure we find the correct tag.
Tag abilities = main.findTagByName("Player").findTagByName("abilities");
if(abilities == null)
{
abilitiesExist = false;
}
else
{
abilitiesExist = true;
}

abilitiesExist = (abilities != null);

} catch (FileNotFoundException e) {
e.printStackTrace();
Expand Down

0 comments on commit 3b51e03

Please sign in to comment.