Browse Source

parsing multi worded names

feature-config-parsing
FatBoy-DOTC 4 months ago
parent
commit
2f076d3215
  1. 2
      src/engine/ConfigParsing/EffectsParser.java

2
src/engine/ConfigParsing/EffectsParser.java

@ -63,7 +63,7 @@ public class EffectsParser { @@ -63,7 +63,7 @@ public class EffectsParser {
try {
String rawData = compiledLines.get(1).replace(" ", "");
if(rawData.contains("\"")){
int startIndex = rawData.indexOf('"');
int startIndex = rawData.indexOf('"') + 1;
int endIndex = rawData.lastIndexOf('"');
char[] nameValue = rawData.toCharArray();
String name = "";

Loading…
Cancel
Save