From 9ed2f1a825b0660aa2b296ff4a70a21edc722437 Mon Sep 17 00:00:00 2001 From: fdai7430 Date: Sat, 4 Feb 2023 19:54:46 +0100 Subject: [PATCH] refactoring: Fixed use command not jumping out of COMBAT_LOOP --- src/main/java/org/bitbiome/commands/UseCommand.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bitbiome/commands/UseCommand.java b/src/main/java/org/bitbiome/commands/UseCommand.java index 6c0887a..cdef2f5 100644 --- a/src/main/java/org/bitbiome/commands/UseCommand.java +++ b/src/main/java/org/bitbiome/commands/UseCommand.java @@ -37,7 +37,7 @@ private boolean combat = false; switch(input) { case "use": System.out.println(use(scanner, engine)); - break; + break COMBAT_LOOP; case "runaway": if(runawaySucceeds(getRunawayChance())) { combat = false;