Skip to content

Commit

Permalink
Fixed spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jitse Boonstra authored and Jitse Boonstra committed Apr 26, 2020
1 parent b5e69e9 commit 8ef051c
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions api/src/main/java/net/jitse/npclib/NPCLib.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,7 @@
import net.jitse.npclib.NPCLibOptions.MovementHandling;
import net.jitse.npclib.api.NPC;
import net.jitse.npclib.api.utilities.Logger;
import net.jitse.npclib.listeners.ChunkListener;
import net.jitse.npclib.listeners.PacketListener;
import net.jitse.npclib.listeners.PeriodicMoveListener;
import net.jitse.npclib.listeners.PlayerListener;
import net.jitse.npclib.listeners.PlayerMoveEventListener;
import net.jitse.npclib.listeners.*;
import net.jitse.npclib.metrics.NPCLibMetrics;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
Expand Down Expand Up @@ -53,9 +49,9 @@ private NPCLib(JavaPlugin plugin, MovementHandling moveHandling) {
pluginManager.registerEvents(new ChunkListener(this), plugin);

if (moveHandling.usePme) {
pluginManager.registerEvents(new PlayerMoveEventListener(), plugin);
pluginManager.registerEvents(new PlayerMoveEventListener(), plugin);
} else {
pluginManager.registerEvents(new PeriodicMoveListener(this, moveHandling.updateInterval), plugin);
pluginManager.registerEvents(new PeriodicMoveListener(this, moveHandling.updateInterval), plugin);
}

// Boot the according packet listener.
Expand All @@ -69,11 +65,11 @@ private NPCLib(JavaPlugin plugin, MovementHandling moveHandling) {
}

public NPCLib(JavaPlugin plugin) {
this(plugin, MovementHandling.playerMoveEvent());
this(plugin, MovementHandling.playerMoveEvent());
}

public NPCLib(JavaPlugin plugin, NPCLibOptions options) {
this(plugin, options.moveHandling);
this(plugin, options.moveHandling);
}

/**
Expand Down

0 comments on commit 8ef051c

Please sign in to comment.