Return the pladdon that was made

This commit is contained in:
tastybento 2024-07-02 11:21:28 -07:00
parent 93e3152efc
commit a51e9860f5

View File

@ -10,9 +10,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
*/
public class GreenhousesPladdon extends Pladdon
{
private Addon addon;
@Override
public Addon getAddon()
{
return new Greenhouses();
if (addon == null) {
addon = new Greenhouses();
}
return addon;
}
}