remove unused dependency from processor task
This commit is contained in:
parent
7c3e5efcef
commit
702fa3c74e
2 changed files with 2 additions and 5 deletions
|
@ -162,7 +162,7 @@ public class ZNpcsPlus {
|
||||||
pluginManager.registerEvents(new UpdateNotificationListener(this, adventure, updateChecker, scheduler), bootstrap);
|
pluginManager.registerEvents(new UpdateNotificationListener(this, adventure, updateChecker, scheduler), bootstrap);
|
||||||
}
|
}
|
||||||
|
|
||||||
scheduler.runDelayedTimerAsync(new NpcProcessorTask(npcRegistry, configManager, propertyRegistry), 60L, 3L);
|
scheduler.runDelayedTimerAsync(new NpcProcessorTask(npcRegistry, propertyRegistry), 60L, 3L);
|
||||||
scheduler.runDelayedTimerAsync(new HologramRefreshTask(npcRegistry), 60L, 20L);
|
scheduler.runDelayedTimerAsync(new HologramRefreshTask(npcRegistry), 60L, 20L);
|
||||||
scheduler.runDelayedTimerAsync(new SkinCacheCleanTask(skinCache), 1200, 1200);
|
scheduler.runDelayedTimerAsync(new SkinCacheCleanTask(skinCache), 1200, 1200);
|
||||||
pluginManager.registerEvents(new ViewableHideOnLeaveListener(), bootstrap);
|
pluginManager.registerEvents(new ViewableHideOnLeaveListener(), bootstrap);
|
||||||
|
|
|
@ -2,7 +2,6 @@ package lol.pyr.znpcsplus.tasks;
|
||||||
|
|
||||||
import lol.pyr.znpcsplus.api.event.NpcDespawnEvent;
|
import lol.pyr.znpcsplus.api.event.NpcDespawnEvent;
|
||||||
import lol.pyr.znpcsplus.api.event.NpcSpawnEvent;
|
import lol.pyr.znpcsplus.api.event.NpcSpawnEvent;
|
||||||
import lol.pyr.znpcsplus.config.ConfigManager;
|
|
||||||
import lol.pyr.znpcsplus.entity.EntityPropertyImpl;
|
import lol.pyr.znpcsplus.entity.EntityPropertyImpl;
|
||||||
import lol.pyr.znpcsplus.entity.EntityPropertyRegistryImpl;
|
import lol.pyr.znpcsplus.entity.EntityPropertyRegistryImpl;
|
||||||
import lol.pyr.znpcsplus.npc.NpcEntryImpl;
|
import lol.pyr.znpcsplus.npc.NpcEntryImpl;
|
||||||
|
@ -17,12 +16,10 @@ import org.bukkit.util.NumberConversions;
|
||||||
|
|
||||||
public class NpcProcessorTask extends BukkitRunnable {
|
public class NpcProcessorTask extends BukkitRunnable {
|
||||||
private final NpcRegistryImpl npcRegistry;
|
private final NpcRegistryImpl npcRegistry;
|
||||||
private final ConfigManager configManager;
|
|
||||||
private final EntityPropertyRegistryImpl propertyRegistry;
|
private final EntityPropertyRegistryImpl propertyRegistry;
|
||||||
|
|
||||||
public NpcProcessorTask(NpcRegistryImpl npcRegistry, ConfigManager configManager, EntityPropertyRegistryImpl propertyRegistry) {
|
public NpcProcessorTask(NpcRegistryImpl npcRegistry, EntityPropertyRegistryImpl propertyRegistry) {
|
||||||
this.npcRegistry = npcRegistry;
|
this.npcRegistry = npcRegistry;
|
||||||
this.configManager = configManager;
|
|
||||||
this.propertyRegistry = propertyRegistry;
|
this.propertyRegistry = propertyRegistry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue