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 93e3152 commit a51e986
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@
*/
public class GreenhousesPladdon extends Pladdon
{
private Addon addon;
@Override
public Addon getAddon()
{
return new Greenhouses();
if (addon == null) {
addon = new Greenhouses();
}
return addon;
}
}

0 comments on commit a51e986

Please sign in to comment.