This commit is contained in:
parent
4199aa02bb
commit
ca6e72d00c
@ -1,5 +1,8 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**1.0.7**
|
||||||
|
* Fix Loading Maven XML
|
||||||
|
|
||||||
**1.0.6**
|
**1.0.6**
|
||||||
* Fix Crash (Again)
|
* Fix Crash (Again)
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ org.gradle.jvmargs = -Xmx1G
|
|||||||
fabric_loader_version = 0.8.8+build.202
|
fabric_loader_version = 0.8.8+build.202
|
||||||
|
|
||||||
# Mod Properties
|
# Mod Properties
|
||||||
mod_version = 1.0.6
|
mod_version = 1.0.7
|
||||||
maven_group = com.thebrokenrail
|
maven_group = com.thebrokenrail
|
||||||
|
|
||||||
# Dependencies
|
# Dependencies
|
||||||
|
@ -12,6 +12,7 @@ import org.dom4j.DocumentException;
|
|||||||
import org.dom4j.Node;
|
import org.dom4j.Node;
|
||||||
import org.dom4j.io.SAXReader;
|
import org.dom4j.io.SAXReader;
|
||||||
|
|
||||||
|
import java.io.ByteArrayInputStream;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
@ -43,9 +44,10 @@ public class MavenStrategy implements ModUpdateStrategy {
|
|||||||
Document doc;
|
Document doc;
|
||||||
try {
|
try {
|
||||||
SAXReader reader = new SAXReader();
|
SAXReader reader = new SAXReader();
|
||||||
doc = reader.read(data);
|
doc = reader.read(new ByteArrayInputStream(data.getBytes()));
|
||||||
} catch (DocumentException e) {
|
} catch (DocumentException e) {
|
||||||
ModUpdater.getLogger().warn("Unable To Access Maven Repository: " + name);
|
e.printStackTrace();
|
||||||
|
ModUpdater.getLogger().warn("Maven Repository Sent Invalid Data: " + name);
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user