No point verifying the load order for ProtocolLib.
Also removed a debug message.
Dieser Commit ist enthalten in:
Ursprung
8970cd915a
Commit
c813811721
@ -348,7 +348,6 @@ class CommandPacket extends CommandBase {
|
|||||||
else if (side.isForServer())
|
else if (side.isForServer())
|
||||||
supported.addAll(Packets.Server.getSupported());
|
supported.addAll(Packets.Server.getSupported());
|
||||||
|
|
||||||
System.out.println("Supported for " + side + ": " + supported);
|
|
||||||
return supported;
|
return supported;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -120,6 +120,8 @@ class PluginVerifier {
|
|||||||
if (plugin == null)
|
if (plugin == null)
|
||||||
throw new IllegalArgumentException("plugin cannot be NULL.");
|
throw new IllegalArgumentException("plugin cannot be NULL.");
|
||||||
|
|
||||||
|
// Skip the load order check for ProtocolLib itself
|
||||||
|
if (!dependency.equals(plugin)) {
|
||||||
if (!loadedAfter.contains(plugin.getName())) {
|
if (!loadedAfter.contains(plugin.getName())) {
|
||||||
if (verifyLoadOrder(dependency, plugin)) {
|
if (verifyLoadOrder(dependency, plugin)) {
|
||||||
// Memorize
|
// Memorize
|
||||||
@ -128,6 +130,7 @@ class PluginVerifier {
|
|||||||
return VerificationResult.NO_DEPEND;
|
return VerificationResult.NO_DEPEND;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Everything seems to be in order
|
// Everything seems to be in order
|
||||||
return VerificationResult.VALID;
|
return VerificationResult.VALID;
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren