Also recognize ProtocolLib versions just with build number prefix.

This commit is contained in:
asofold 2016-05-16 22:11:32 +02:00
parent 980af8d664
commit a32bc257f3

View File

@ -75,6 +75,9 @@ public class DefaultComponentFactory {
if (pV == null) {
pV = GenericVersion.parseVersionDelimiters(_pV, "", "-snapshot");
}
if (pV == null) {
pV = GenericVersion.parseVersionDelimiters(_pV, "", "-b");
}
if (pV == null) {
// TODO: Was another (specific) attempt parsing planned here !?
StaticLog.logWarning("Could not interpret the version of ProtocolLib, won't activate hooks.");