From b641d0f450e3b8ae47bee1cadae2d0a5ea092675 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 2 Jul 2024 09:32:35 -0700 Subject: [PATCH] Return pladdon that was made. --- src/main/java/world/bentobox/level/LevelPladdon.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/level/LevelPladdon.java b/src/main/java/world/bentobox/level/LevelPladdon.java index 356833c..f054313 100644 --- a/src/main/java/world/bentobox/level/LevelPladdon.java +++ b/src/main/java/world/bentobox/level/LevelPladdon.java @@ -9,8 +9,14 @@ import world.bentobox.bentobox.api.addons.Pladdon; * */ public class LevelPladdon extends Pladdon { + + private Addon addon; + @Override public Addon getAddon() { - return new Level(); + if (addon == null) { + addon = new Level(); + } + return addon; } }