Renamed ModReqChecker to XmlPreprocesser
This commit is contained in:
parent
73b1dc41d2
commit
aaa621137c
3 changed files with 7 additions and 7 deletions
|
@ -8,7 +8,7 @@ import cpw.mods.fml.common.Loader;
|
|||
import cr0s.warpdrive.WarpDrive;
|
||||
|
||||
|
||||
public class ModRequirementChecker {
|
||||
public class XmlPreprocessor {
|
||||
|
||||
/**
|
||||
* Will check the given element for a mod attribute and return a string of all the ones that are not loaded, separated by commas
|
|
@ -15,7 +15,7 @@ import org.xml.sax.SAXException;
|
|||
import scala.actors.threadpool.Arrays;
|
||||
import cr0s.warpdrive.WarpDrive;
|
||||
import cr0s.warpdrive.config.InvalidXmlException;
|
||||
import cr0s.warpdrive.config.ModRequirementChecker;
|
||||
import cr0s.warpdrive.config.XmlPreprocessor;
|
||||
import cr0s.warpdrive.config.WarpDriveConfig;
|
||||
|
||||
public class FillerManager {
|
||||
|
@ -69,7 +69,7 @@ public class FillerManager {
|
|||
|
||||
Document base = WarpDriveConfig.getXmlDocumentBuilder().parse(file);
|
||||
|
||||
String res = ModRequirementChecker.checkModRequirements(base.getDocumentElement());
|
||||
String res = XmlPreprocessor.checkModRequirements(base.getDocumentElement());
|
||||
|
||||
if (!res.isEmpty()) {
|
||||
WarpDrive.logger.info("Skippping filler data file " + file.getPath() + " because the mods " + res + " are not loaded");
|
||||
|
@ -77,7 +77,7 @@ public class FillerManager {
|
|||
}
|
||||
|
||||
// Remove elements based on mod reqs sanitation
|
||||
ModRequirementChecker.doModReqSanitation(base);
|
||||
XmlPreprocessor.doModReqSanitation(base);
|
||||
|
||||
// Initially add FillerSets
|
||||
NodeList nodesFillerSet = base.getElementsByTagName("FillerSet");
|
||||
|
|
|
@ -13,7 +13,7 @@ import org.xml.sax.SAXException;
|
|||
|
||||
import cr0s.warpdrive.WarpDrive;
|
||||
import cr0s.warpdrive.config.InvalidXmlException;
|
||||
import cr0s.warpdrive.config.ModRequirementChecker;
|
||||
import cr0s.warpdrive.config.XmlPreprocessor;
|
||||
import cr0s.warpdrive.config.WarpDriveConfig;
|
||||
|
||||
|
||||
|
@ -61,14 +61,14 @@ public class StructureManager {
|
|||
private static void loadXmlStructureFile(File f) throws SAXException, IOException, InvalidXmlException {
|
||||
Document base = WarpDriveConfig.getXmlDocumentBuilder().parse(f);
|
||||
|
||||
String res = ModRequirementChecker.checkModRequirements(base.getDocumentElement());
|
||||
String res = XmlPreprocessor.checkModRequirements(base.getDocumentElement());
|
||||
|
||||
if (!res.isEmpty()) {
|
||||
WarpDrive.logger.info("Skippping structure data file " + f.getPath() + " because the mods " + res + " are not loaded");
|
||||
return;
|
||||
}
|
||||
|
||||
ModRequirementChecker.doModReqSanitation(base);
|
||||
XmlPreprocessor.doModReqSanitation(base);
|
||||
|
||||
NodeList structures = base.getElementsByTagName("structure");
|
||||
for (int i = 0; i < structures.getLength(); i++) {
|
||||
|
|
Loading…
Reference in a new issue