Fix issue when UniqueID was not accepted. Logical error.

This commit is contained in:
BONNe 2019-01-23 20:36:50 +02:00
parent 3d0f01f2dd
commit 22205265f6
1 changed files with 2 additions and 2 deletions

View File

@ -201,7 +201,7 @@ public class AdminGUI extends CommonGUI
(player, reply) -> { (player, reply) -> {
String newName = Util.getWorld(this.world).getName() + "_" + 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, new EditChallengeGUI(this.addon,
this.world, this.world,
@ -237,7 +237,7 @@ public class AdminGUI extends CommonGUI
(player, reply) -> { (player, reply) -> {
String newName = Util.getWorld(this.world).getName() + "_" + 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, new EditLevelGUI(this.addon,
this.world, this.world,