Skip to content

Commit

Permalink
Return addon that was created
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Sep 8, 2024
1 parent 440d9a8 commit 2f02261
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/world/bentobox/skygrid/SkyGridPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@

public class SkyGridPladdon extends Pladdon {

private SkyGrid addon;

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

0 comments on commit 2f02261

Please sign in to comment.