Skip to content

Commit

Permalink
Fix issue when UniqueID was not accepted. Logical error.
Browse files Browse the repository at this point in the history
  • Loading branch information
BONNe committed Jan 23, 2019
1 parent 3d0f01f commit 2220526
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ private PanelItem createButton(Button button)
(player, reply) -> {
String newName = Util.getWorld(this.world).getName() + "_" + reply;

if (this.addon.getChallengesManager().containsChallenge(newName))
if (!this.addon.getChallengesManager().containsChallenge(newName))
{
new EditChallengeGUI(this.addon,
this.world,
Expand Down Expand Up @@ -237,7 +237,7 @@ private PanelItem createButton(Button button)
(player, reply) -> {
String newName = Util.getWorld(this.world).getName() + "_" + reply;

if (this.addon.getChallengesManager().containsLevel(newName))
if (!this.addon.getChallengesManager().containsLevel(newName))
{
new EditLevelGUI(this.addon,
this.world,
Expand Down

0 comments on commit 2220526

Please sign in to comment.