Fix TagArgument not being default although there are no contents

This commit is contained in:
Marcel Konrad
2022-06-15 21:20:53 +02:00
parent c94aeac84f
commit a0c3835d0e

View File

@@ -107,6 +107,6 @@ public class TagArgument implements IDeserializableArgument
@Override
public boolean isDefault()
{
return this.tag == null && (this.providers == null || this.providers.isEmpty());
return this.tag == null && (this.providers == null || this.providers.isEmpty() || this.providers.stream().allMatch(provider -> provider.value() == null));
}
}