Fixed a minor bug.

This commit is contained in:
Kristian S. Stangeland 2012-09-29 22:20:21 +02:00
parent b3098bc6ad
commit 721d92bd4f
3 changed files with 5 additions and 3 deletions

View File

@ -25,6 +25,7 @@ import org.bukkit.Server;
import org.bukkit.plugin.PluginManager;
import org.bukkit.plugin.java.JavaPlugin;
import com.comphenix.protocol.async.AsyncFilterManager;
import com.comphenix.protocol.injector.PacketFilterManager;
import com.comphenix.protocol.metrics.Statistics;
import com.comphenix.protocol.reflect.compiler.BackgroundCompiler;
@ -98,7 +99,8 @@ public class ProtocolLibrary extends JavaPlugin {
asyncPacketTask = server.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
@Override
public void run() {
protocolManager.getAsyncFilterManager().sendProcessedPackets();
AsyncFilterManager manager = (AsyncFilterManager) protocolManager.getAsynchronousManager();
manager.sendProcessedPackets();
}
}, ASYNC_PACKET_DELAY, ASYNC_PACKET_DELAY);

View File

@ -127,5 +127,5 @@ public interface ProtocolManager extends PacketStream {
* Retrieve the current asyncronous packet manager.
* @return Asyncronous packet manager.
*/
public AsynchronousManager getAsyncFilterManager();
public AsynchronousManager getAsynchronousManager();
}

View File

@ -139,7 +139,7 @@ public final class PacketFilterManager implements ProtocolManager {
}
@Override
public AsynchronousManager getAsyncFilterManager() {
public AsynchronousManager getAsynchronousManager() {
return asyncFilterManager;
}