From 76c5214ce7167c855173275bfde5369adf29db12 Mon Sep 17 00:00:00 2001 From: tastybento Date: Tue, 2 Jul 2024 11:26:00 -0700 Subject: [PATCH] Return Pladdon that was made. --- .../java/world/bentobox/aoneblock/AOneBlockPladdon.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/aoneblock/AOneBlockPladdon.java b/src/main/java/world/bentobox/aoneblock/AOneBlockPladdon.java index b1d9cf13..743d34a1 100644 --- a/src/main/java/world/bentobox/aoneblock/AOneBlockPladdon.java +++ b/src/main/java/world/bentobox/aoneblock/AOneBlockPladdon.java @@ -5,8 +5,14 @@ public class AOneBlockPladdon extends Pladdon { + private Addon addon; + @Override public Addon getAddon() { - return new AOneBlock(); + if (addon == null) { + addon = new AOneBlock(); + } + + return addon; } }