Skip to content

Commit

Permalink
Make pladdon return only one instance
Browse files Browse the repository at this point in the history
  • Loading branch information
tastybento committed Aug 24, 2024
1 parent 7dbf516 commit 4f85597
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/world/bentobox/islandfly/IslandFlyPladdon.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,13 @@

public class IslandFlyPladdon extends Pladdon
{
Addon addon;
@Override
public Addon getAddon()
{
return new IslandFlyAddon();
if (addon == null) {
addon = new IslandFlyAddon();
}
return addon;
}
}

0 comments on commit 4f85597

Please sign in to comment.