Skin hashes can have less than 64 characters?

This commit is contained in:
davchoo 2023-01-31 21:02:18 -05:00
parent a91b531f99
commit cbe7256125
No known key found for this signature in database
GPG key ID: 501B6F4FD961CF9A

View file

@ -116,7 +116,7 @@ public class CustomSkullRegistryPopulator {
});
skinHashes.forEach((skinHash) -> {
if (!skinHash.matches("^[a-fA-F0-9]{64}$")) {
if (!skinHash.matches("^[a-fA-F0-9]+$")) {
GeyserImpl.getInstance().getLogger().error("Skin hash " + skinHash + " does not match required format ^[a-fA-F0-9]{64}$ and will not be added as a custom block.");
return;
}