From 2f02261db5459cf520907d3ff1a242f9d17093d2 Mon Sep 17 00:00:00 2001 From: tastybento Date: Sun, 8 Sep 2024 08:40:28 -0700 Subject: [PATCH] Return addon that was created --- src/main/java/world/bentobox/skygrid/SkyGridPladdon.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/skygrid/SkyGridPladdon.java b/src/main/java/world/bentobox/skygrid/SkyGridPladdon.java index 9368da8..9cb4c37 100644 --- a/src/main/java/world/bentobox/skygrid/SkyGridPladdon.java +++ b/src/main/java/world/bentobox/skygrid/SkyGridPladdon.java @@ -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; } }