mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-31 04:02:06 -07:00
Fix Owen's typos (#11179)
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user