Browse Source

parsing multi worded names

feature-config-parsing
FatBoy-DOTC 5 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 {
try { try {
String rawData = compiledLines.get(1).replace(" ", ""); String rawData = compiledLines.get(1).replace(" ", "");
if(rawData.contains("\"")){ if(rawData.contains("\"")){
int startIndex = rawData.indexOf('"'); int startIndex = rawData.indexOf('"') + 1;
int endIndex = rawData.lastIndexOf('"'); int endIndex = rawData.lastIndexOf('"');
char[] nameValue = rawData.toCharArray(); char[] nameValue = rawData.toCharArray();
String name = ""; String name = "";

Loading…
Cancel
Save