mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-30 04:02:50 +01:00
d60497ebf2
Upstream has released updates that appear to apply and compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing Bukkit Changes: ff64962b SPIGOT-7124: MapPalette.getColor(0) returns the wrong color CraftBukkit Changes: 8f3647242 SPIGOT-7127: /say doesn't work from console
27 lines
1.5 KiB
Diff
27 lines
1.5 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Nassim Jahnke <nassim@njahnke.dev>
|
|
Date: Fri, 1 Oct 2021 09:47:00 +0200
|
|
Subject: [PATCH] Fix plugin provides load order
|
|
|
|
Fixes https://hub.spigotmc.org/jira/browse/SPIGOT-6740
|
|
|
|
diff --git a/src/main/java/org/bukkit/plugin/SimplePluginManager.java b/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
|
index 60988665eb358d5566e9de61aec841db3f79722c..d1c1df75c011d8b4e10342c864aeb206e5cac23f 100644
|
|
--- a/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
|
+++ b/src/main/java/org/bukkit/plugin/SimplePluginManager.java
|
|
@@ -277,6 +277,7 @@ public final class SimplePluginManager implements PluginManager {
|
|
// Paper end
|
|
missingDependency = false;
|
|
pluginIterator.remove();
|
|
+ pluginsProvided.values().removeIf(s -> s.equals(plugin)); // Paper - remove provided plugins
|
|
softDependencies.remove(plugin);
|
|
dependencies.remove(plugin);
|
|
|
|
@@ -310,6 +311,7 @@ public final class SimplePluginManager implements PluginManager {
|
|
// We're clear to load, no more soft or hard dependencies left
|
|
File file = plugins.get(plugin);
|
|
pluginIterator.remove();
|
|
+ pluginsProvided.values().removeIf(s -> s.equals(plugin)); // Paper - remove provided plugins
|
|
missingDependency = false;
|
|
|
|
try {
|