mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-29 04:17:29 +02:00
If ProtocolLib is a snapshot but has no build number, don't update it. Fixes #676
This commit is contained in:
parent
dec93056f8
commit
55257e7669
@ -574,7 +574,11 @@ public class DisguiseUtilities {
|
||||
|
||||
// If this is also checking for a custom build, and PL has the custom build in..
|
||||
// We run this check first as the 4.7.1 isn't out, and it'd always tell us to update otherwise.
|
||||
if (reqVersion.length > 1 && plVersion.contains("-SNAPSHOT-b")) {
|
||||
if (reqVersion.length > 1 && plVersion.contains("-SNAPSHOT")) {
|
||||
if (!plVersion.contains("-SNAPSHOT-b")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
String build = plVersion.substring(plVersion.lastIndexOf("b") + 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user