forked from MagicBane/Server
Effects.cfg parser
This commit is contained in:
@@ -103,11 +103,11 @@ public class EffectsParser {
|
||||
while(!lines.get(index + extra).contains("MODSEND"))
|
||||
{
|
||||
//data.mods.add(lines[index + extra].Replace(" ", ""));
|
||||
mod.type = lines.get(index + extra).replace(" ", "").split(" ")[0];
|
||||
mod.type = mbEnums.ModType.valueOf(lines.get(index + extra).replace(" ", "").split(" ")[0]);
|
||||
GenerateModValues(mod, lines.get(index + extra).replace(" ", "").replace(" ", "").split(" "));
|
||||
extra++;
|
||||
}
|
||||
data.mods.add(mbEnums.ModType.valueOf(mod.type));
|
||||
data.mods.add(mod);
|
||||
}
|
||||
index++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user