If ProtocolLib is a snapshot but has no build number, don't update it. Fixes #676

This commit is contained in:
libraryaddict 2022-11-15 03:38:54 +13:00
parent dec93056f8
commit 55257e7669

View File

@ -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);