Skip to content

Commit

Permalink
Return 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 6b32c1c commit 76c5214
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/main/java/world/bentobox/aoneblock/AOneBlockPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,14 @@

public class AOneBlockPladdon extends Pladdon {

private Addon addon;

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

return addon;
}
}

0 comments on commit 76c5214

Please sign in to comment.