mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2024-12-26 19:18:12 +01:00
No point verifying the load order for ProtocolLib.
Also removed a debug message.
This commit is contained in:
parent
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,12 +120,15 @@ class PluginVerifier {
|
|||||||
if (plugin == null)
|
if (plugin == null)
|
||||||
throw new IllegalArgumentException("plugin cannot be NULL.");
|
throw new IllegalArgumentException("plugin cannot be NULL.");
|
||||||
|
|
||||||
if (!loadedAfter.contains(plugin.getName())) {
|
// Skip the load order check for ProtocolLib itself
|
||||||
if (verifyLoadOrder(dependency, plugin)) {
|
if (!dependency.equals(plugin)) {
|
||||||
// Memorize
|
if (!loadedAfter.contains(plugin.getName())) {
|
||||||
loadedAfter.add(plugin.getName());
|
if (verifyLoadOrder(dependency, plugin)) {
|
||||||
} else {
|
// Memorize
|
||||||
return VerificationResult.NO_DEPEND;
|
loadedAfter.add(plugin.getName());
|
||||||
|
} else {
|
||||||
|
return VerificationResult.NO_DEPEND;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user