mirror of
https://github.com/Suiranoil/SkinRestorer.git
synced 2026-01-16 04:42:12 +00:00
do not add skin set command if no public providers are registered
This commit is contained in:
@@ -49,7 +49,8 @@ public final class SkinCommand {
|
||||
var providers = SkinRestorer.getProvidersRegistry().getPublicProviders();
|
||||
for (var entry : providers)
|
||||
set.then(buildSetSubcommand(entry.first(), entry.second()));
|
||||
base.then(set);
|
||||
if (!providers.isEmpty())
|
||||
base.then(set);
|
||||
|
||||
base.then(
|
||||
literal("config")
|
||||
|
||||
Reference in New Issue
Block a user