Permalink
Browse files

Don't replace entire last line on Melody with uppercase when :START o…

…r :LOOP is found.
  • Loading branch information...
me4502 committed Feb 26, 2017
1 parent e13b119 commit 7d8b7c3abcec5bcf1a9f9fafa8dfbbad08c819ff
@@ -70,8 +70,8 @@ public void unload() {
@Override
public void load() {
- if(getLine(3).toUpperCase().contains(":START")) getSign().setLine(3, getLine(3).toUpperCase().replace(":START", ";START"));
- if(getLine(3).toUpperCase().contains(":LOOP")) getSign().setLine(3, getLine(3).toUpperCase().replace(":LOOP", ";LOOP"));
+ if(getLine(3).contains(":START")) getSign().setLine(3, getLine(3).replace(":START", ";START"));
+ if(getLine(3).contains(":LOOP")) getSign().setLine(3, getLine(3).replace(":LOOP", ";LOOP"));
String[] split = RegexUtil.SEMICOLON_PATTERN.split(getSign().getLine(3));

0 comments on commit 7d8b7c3

Please sign in to comment.