Skip to content

Commit

Permalink
Return the Pladdon that was made.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 2, 2024
1 parent e5ffa74 commit 6b5b440
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,14 @@
*/
public class StoneGeneratorPladdon extends Pladdon
{
private Addon addon;

@Override
public Addon getAddon()
{
return new StoneGeneratorAddon();
if (addon == null) {
addon = new StoneGeneratorAddon();
}
return addon;
}
}

0 comments on commit 6b5b440

Please sign in to comment.