Browse Source

parsing multi worded names

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

2
src/engine/ConfigParsing/EffectsParser.java

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

Loading…
Cancel
Save