mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Fixed switch treating continue like break.
This commit is contained in:
parent
daf1dde701
commit
09589e2a79
@ -80,6 +80,8 @@ public class Switch extends Node implements RValue {
|
|||||||
|
|
||||||
return defaultCase == null ? ret : defaultCase.getValue();
|
return defaultCase == null ? ret : defaultCase.getValue();
|
||||||
} catch (BreakException e) {
|
} catch (BreakException e) {
|
||||||
|
if (e.doContinue) throw e;
|
||||||
|
|
||||||
return 0.0;
|
return 0.0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user