No point verifying the load order for ProtocolLib.

Also removed a debug message.
This commit is contained in:
Kristian S. Stangeland 2013-04-30 03:17:59 +02:00
parent 8970cd915a
commit c813811721
2 changed files with 9 additions and 7 deletions

View File

@ -348,7 +348,6 @@ class CommandPacket extends CommandBase {
else if (side.isForServer())
supported.addAll(Packets.Server.getSupported());
System.out.println("Supported for " + side + ": " + supported);
return supported;
}

View File

@ -120,12 +120,15 @@ class PluginVerifier {
if (plugin == null)
throw new IllegalArgumentException("plugin cannot be NULL.");
if (!loadedAfter.contains(plugin.getName())) {
if (verifyLoadOrder(dependency, plugin)) {
// Memorize
loadedAfter.add(plugin.getName());
} else {
return VerificationResult.NO_DEPEND;
// Skip the load order check for ProtocolLib itself
if (!dependency.equals(plugin)) {
if (!loadedAfter.contains(plugin.getName())) {
if (verifyLoadOrder(dependency, plugin)) {
// Memorize
loadedAfter.add(plugin.getName());
} else {
return VerificationResult.NO_DEPEND;
}
}
}