From 56a9eecab3dd97d546a067d4f30709dd7f0a6457 Mon Sep 17 00:00:00 2001 From: asofold Date: Mon, 16 Feb 2015 13:13:57 +0100 Subject: [PATCH] Cache permissions for net checks. --- .../java/fr/neatmonster/nocheatplus/checks/net/NetConfig.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/NetConfig.java b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/NetConfig.java index cf23030a..e844197b 100644 --- a/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/NetConfig.java +++ b/NCPCore/src/main/java/fr/neatmonster/nocheatplus/checks/net/NetConfig.java @@ -31,7 +31,9 @@ public class NetConfig extends ACheckConfig { public final double soundDistanceSq; public NetConfig(final ConfigFile config) { - super(config, ConfPaths.NET); + super(config, ConfPaths.NET, new String[] { + Permissions.NET_FLYINGFREQUENCY, Permissions.NET_KEEPALIVEFREQUENCY + }); final ConfigFile globalConfig = ConfigManager.getConfigFile(); flyingFrequencyActive = config.getBoolean(ConfPaths.NET_FLYINGFREQUENCY_ACTIVE);