Skip to content

Commit

Permalink
Fixed projects not unlocking if build elsewhere (#1808)
Browse files Browse the repository at this point in the history
  • Loading branch information
minecraft7771 authored Mar 21, 2023
1 parent 0ab6f7c commit 9474600
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,7 @@ private void processUnlock(ICommandSender sender, String projectName, String loc
ISpaceProject tProject = SpaceProjectManager.getTeamProjectOrCopy(tID, projectName, getLocation(location));
if (tProject != null) {
tProject.setProjectCurrentStage(tProject.getTotalStages());
if (!SpaceProjectManager.teamHasProject(tID, tProject)) {
SpaceProjectManager.addTeamProject(tID, getLocation(location), projectName, tProject);
}
SpaceProjectManager.addTeamProject(tID, getLocation(location), projectName, tProject);
sender.addChatMessage(new ChatComponentText("Project unlocked"));
} else {
sender.addChatMessage(new ChatComponentText("Incorrect internal project name. Try again"));
Expand Down

0 comments on commit 9474600

Please sign in to comment.