Return the Pladdon that was created.

This commit is contained in:
tastybento 2024-07-02 11:14:32 -07:00
parent 9e51156f87
commit 3694f86839

View File

@ -7,8 +7,13 @@ import world.bentobox.bentobox.api.addons.Pladdon;
public class CaveBlockPladdon extends Pladdon { public class CaveBlockPladdon extends Pladdon {
private Addon addon;
@Override @Override
public Addon getAddon() { public Addon getAddon() {
return new CaveBlock(); if (addon == null) {
addon = new CaveBlock();
}
return addon;
} }
} }