Fix issue when UniqueID was not accepted. Logical error.
This commit is contained in:
parent
3d0f01f2dd
commit
22205265f6
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue