Archiviert
13
0

Don't update hooks if we don't need to.

Dieser Commit ist enthalten in:
Kristian S. Stangeland 2013-01-13 15:44:16 +01:00
Ursprung 651581d677
Commit 429ca5d447

Datei anzeigen

@ -142,9 +142,9 @@ public class ProtocolLibrary extends JavaPlugin {
PlayerInjectHooks hook = config.getInjectionMethod(); PlayerInjectHooks hook = config.getInjectionMethod();
// Only update the hook if it's different // Only update the hook if it's different
if (protocolManager.getPlayerHook().equals(hook)) { if (!protocolManager.getPlayerHook().equals(hook)) {
logger.info("Changing player hook from " + protocolManager.getPlayerHook() + " to " + hook);
protocolManager.setPlayerHook(hook); protocolManager.setPlayerHook(hook);
logger.info("Changing player hook to " + hook);
} }
} catch (IllegalArgumentException e) { } catch (IllegalArgumentException e) {
detailedReporter.reportWarning(config, "Cannot parse injection method. Using default.", e); detailedReporter.reportWarning(config, "Cannot parse injection method. Using default.", e);