From 9ce170acb3e9fc2957ecf5e01b0479c0e878a26f Mon Sep 17 00:00:00 2001 From: stijnb1234 Date: Mon, 24 Feb 2020 16:55:53 +0100 Subject: [PATCH] Fixed ArrayIndexOutOfBoundsException for start command --- .../lombok/nl/SBDeveloper/V10Lift/Commands/V10LiftCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/lombok/nl/SBDeveloper/V10Lift/Commands/V10LiftCommand.java b/src/main/lombok/nl/SBDeveloper/V10Lift/Commands/V10LiftCommand.java index a04ea7e..ad1f8f3 100644 --- a/src/main/lombok/nl/SBDeveloper/V10Lift/Commands/V10LiftCommand.java +++ b/src/main/lombok/nl/SBDeveloper/V10Lift/Commands/V10LiftCommand.java @@ -313,7 +313,7 @@ public class V10LiftCommand implements CommandExecutor { Lift lift = DataManager.getLift(liftName); String floorName = null; - if (args.length == 2) { + if (args.length == 1 || args.length == 2) { for (LiftBlock lb : lift.getBlocks()) { Block block = Objects.requireNonNull(Bukkit.getWorld(lb.getWorld()), "World is null at start command").getBlockAt(lb.getX(), lb.getY(), lb.getZ()); if (block.getState() instanceof Sign) {