diff --git a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java index 7ac0db4b8..c80f04a78 100644 --- a/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java +++ b/Core/src/main/java/com/plotsquared/core/components/ComponentPresetManager.java @@ -181,13 +181,11 @@ public class ComponentPresetManager { } allowedPresets.add(componentPreset); } - final int size; if (allowedPresets.isEmpty()) { player.sendMessage(TranslatableCaption.of("preset.empty")); return null; - } else { - size = (int) Math.ceil((double) allowedPresets.size() / 9.0D); } + final int size = (int) Math.ceil((double) allowedPresets.size() / 9.0D); final PlotInventory plotInventory = new PlotInventory(this.inventoryUtil, player, size, TranslatableCaption.of("preset.title").getComponent(player)) { @Override