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 2e13892 commit 87f3ea7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/world/bentobox/warps/WarpsPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,13 @@


public class WarpsPladdon extends Pladdon {
private Addon addon;

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

0 comments on commit 87f3ea7

Please sign in to comment.