Fix Owen's typos (#11179)

This commit is contained in:
powercas_gamer
2024-07-28 19:58:57 +02:00
parent b624a6526d
commit 5257a97fb3
2 changed files with 8 additions and 8 deletions

View File

@@ -1758,7 +1758,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ throw new IllegalStateException("Only paper plugins can have a bootstrapper!");
+ }
+ // Build a validated provider's dependencies into the graph
+ for (String dependency : paperPluginMeta.getBoostrapDependencies().keySet()) {
+ for (String dependency : paperPluginMeta.getBootstrapDependencies().keySet()) {
+ this.graph.putEdge(identifier, dependency);
+ }
+ }
@@ -1770,7 +1770,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ }
+
+ // Build a validated provider's dependencies into the graph
+ for (String dependency : paperPluginMeta.getBoostrapDependencies().keySet()) {
+ for (String dependency : paperPluginMeta.getBootstrapDependencies().keySet()) {
+ this.graph.removeEdge(identifier, dependency);
+ }
+ }
@@ -5087,7 +5087,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ return this.dependencies.getOrDefault(PluginDependencyLifeCycle.SERVER, Map.of());
+ }
+
+ public Map<String, DependencyConfiguration> getBoostrapDependencies() {
+ public Map<String, DependencyConfiguration> getBootstrapDependencies() {
+ return this.dependencies.getOrDefault(PluginDependencyLifeCycle.BOOTSTRAP, Map.of());
+ }
+
@@ -6045,7 +6045,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ public PaperBootstrapOrderConfiguration(PaperPluginMeta paperPluginMeta) {
+ this.paperPluginMeta = paperPluginMeta;
+
+ for (Map.Entry<String, DependencyConfiguration> configuration : paperPluginMeta.getBoostrapDependencies().entrySet()) {
+ for (Map.Entry<String, DependencyConfiguration> configuration : paperPluginMeta.getBootstrapDependencies().entrySet()) {
+ String name = configuration.getKey();
+ DependencyConfiguration dependencyConfiguration = configuration.getValue();
+
@@ -6229,7 +6229,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ @Override
+ public List<String> validateDependencies(@NotNull DependencyContext context) {
+ List<String> missingDependencies = new ArrayList<>();
+ for (Map.Entry<String, DependencyConfiguration> configuration : this.getMeta().getBoostrapDependencies().entrySet()) {
+ for (Map.Entry<String, DependencyConfiguration> configuration : this.getMeta().getBootstrapDependencies().entrySet()) {
+ String dependency = configuration.getKey();
+ if (configuration.getValue().required() && !context.hasDependency(dependency)) {
+ missingDependencies.add(dependency);