From 09589e2a7984f70262eae89ef6469415e881d68c Mon Sep 17 00:00:00 2001 From: TomyLobo Date: Mon, 5 Dec 2011 03:21:17 +0100 Subject: [PATCH] Fixed switch treating continue like break. --- .../java/com/sk89q/worldedit/expression/runtime/Switch.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/expression/runtime/Switch.java b/src/main/java/com/sk89q/worldedit/expression/runtime/Switch.java index c3e2c4194..4313ca967 100644 --- a/src/main/java/com/sk89q/worldedit/expression/runtime/Switch.java +++ b/src/main/java/com/sk89q/worldedit/expression/runtime/Switch.java @@ -80,6 +80,8 @@ public class Switch extends Node implements RValue { return defaultCase == null ? ret : defaultCase.getValue(); } catch (BreakException e) { + if (e.doContinue) throw e; + return 0.0; } }