Skip to content

Commit

Permalink
Return the Pladdon that was created.
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Jul 2, 2024
1 parent 9e51156 commit 3694f86
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/java/world/bentobox/caveblock/CaveBlockPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@

public class CaveBlockPladdon extends Pladdon {

private Addon addon;

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

0 comments on commit 3694f86

Please sign in to comment.