mirror of
https://github.com/BentoBoxWorld/Challenges.git
synced 2024-11-26 04:25:13 +01:00
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) -> {
|
||||
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,
|
||||
@ -237,7 +237,7 @@ public class AdminGUI extends CommonGUI
|
||||
(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,
|
||||
|
Loading…
Reference in New Issue
Block a user