Default tick-limiter to false if whitelisted

#847
This commit is contained in:
Jesse Boyd 2018-01-11 20:37:29 +11:00
parent 5be72dd5d7
commit 0a127dfb40
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
1 changed files with 2 additions and 2 deletions

View File

@ -101,6 +101,7 @@ public class FaweBukkit implements IFawe, Listener {
public FaweBukkit(BukkitMain plugin) { public FaweBukkit(BukkitMain plugin) {
this.plugin = plugin; this.plugin = plugin;
try { try {
Settings.IMP.TICK_LIMITER.ENABLED = !Bukkit.hasWhitelist();
Fawe.set(this); Fawe.set(this);
setupInjector(); setupInjector();
try { try {
@ -151,8 +152,7 @@ public class FaweBukkit implements IFawe, Listener {
try { try {
Class.forName("sun.misc.SharedSecrets"); Class.forName("sun.misc.SharedSecrets");
new ChunkListener_8(); new ChunkListener_8();
} catch( ClassNotFoundException e ) } catch (ClassNotFoundException e) {
{
new ChunkListener_9(); new ChunkListener_9();
} }
} }