9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-19 15:09:19 +00:00

check against correct provider

This commit is contained in:
Tech
2025-01-22 17:09:07 -05:00
parent afb3218bc1
commit 64a590b581

View File

@@ -81,7 +81,7 @@ public class CosmeticUsers {
* @throws IllegalArgumentException if the provider is already registered by another plugin
*/
public static void registerProvider(final CosmeticUserProvider provider) {
if(provider != CosmeticUserProvider.DEFAULT) {
if(PROVIDER != CosmeticUserProvider.DEFAULT) {
throw new IllegalArgumentException("CosmeticUserProvider already registered by %s, this conflicts with %s attempting to register their own.".formatted(
PROVIDER.getProviderPlugin().getName(),
provider.getProviderPlugin().getName()