Skip to content

Commit

Permalink
return the pladdon that was generated.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 2, 2024
1 parent e424560 commit 7441b77
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
*/
public class ChallengesPladdon extends Pladdon
{
private Addon addon;
@Override
public Addon getAddon()
{
return new ChallengesAddon();
if (addon == null) {
addon = new ChallengesAddon();
}
return addon;
}
}

0 comments on commit 7441b77

Please sign in to comment.