From efbdcfc5875d77060e05eedbf0c4fc7bcb7bc633 Mon Sep 17 00:00:00 2001 From: Florian CUNY Date: Mon, 10 Jun 2019 09:18:30 +0200 Subject: [PATCH] Simplified the selectBundle(...) method in IslandResetCommand --- .../bentobox/api/commands/island/IslandResetCommand.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandResetCommand.java b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandResetCommand.java index 6cf7c85a7..04a262f3a 100644 --- a/src/main/java/world/bentobox/bentobox/api/commands/island/IslandResetCommand.java +++ b/src/main/java/world/bentobox/bentobox/api/commands/island/IslandResetCommand.java @@ -13,6 +13,7 @@ import world.bentobox.bentobox.api.events.island.IslandEvent.Reason; import world.bentobox.bentobox.api.localization.TextVariables; import world.bentobox.bentobox.api.user.User; import world.bentobox.bentobox.database.objects.Island; +import world.bentobox.bentobox.managers.BlueprintsManager; import world.bentobox.bentobox.managers.island.NewIsland; import world.bentobox.bentobox.panels.IslandCreationPanel; @@ -104,7 +105,7 @@ public class IslandResetCommand extends ConfirmableCommand { // Show panel IslandCreationPanel.openPanel(this, user, label); } else { - resetIsland(user, getPlugin().getBlueprintsManager().getBlueprintBundles((GameModeAddon) getAddon()).keySet().toArray(new String[]{})[0]); + resetIsland(user, BlueprintsManager.DEFAULT_BUNDLE_NAME); } }