mirror of
https://github.com/dmulloy2/ProtocolLib.git
synced 2025-01-14 04:01:55 +01:00
Fixed a minor bug.
This commit is contained in:
parent
b3098bc6ad
commit
721d92bd4f
@ -25,6 +25,7 @@ import org.bukkit.Server;
|
|||||||
import org.bukkit.plugin.PluginManager;
|
import org.bukkit.plugin.PluginManager;
|
||||||
import org.bukkit.plugin.java.JavaPlugin;
|
import org.bukkit.plugin.java.JavaPlugin;
|
||||||
|
|
||||||
|
import com.comphenix.protocol.async.AsyncFilterManager;
|
||||||
import com.comphenix.protocol.injector.PacketFilterManager;
|
import com.comphenix.protocol.injector.PacketFilterManager;
|
||||||
import com.comphenix.protocol.metrics.Statistics;
|
import com.comphenix.protocol.metrics.Statistics;
|
||||||
import com.comphenix.protocol.reflect.compiler.BackgroundCompiler;
|
import com.comphenix.protocol.reflect.compiler.BackgroundCompiler;
|
||||||
@ -98,7 +99,8 @@ public class ProtocolLibrary extends JavaPlugin {
|
|||||||
asyncPacketTask = server.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
|
asyncPacketTask = server.getScheduler().scheduleSyncRepeatingTask(this, new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
protocolManager.getAsyncFilterManager().sendProcessedPackets();
|
AsyncFilterManager manager = (AsyncFilterManager) protocolManager.getAsynchronousManager();
|
||||||
|
manager.sendProcessedPackets();
|
||||||
}
|
}
|
||||||
}, ASYNC_PACKET_DELAY, ASYNC_PACKET_DELAY);
|
}, ASYNC_PACKET_DELAY, ASYNC_PACKET_DELAY);
|
||||||
|
|
||||||
|
@ -127,5 +127,5 @@ public interface ProtocolManager extends PacketStream {
|
|||||||
* Retrieve the current asyncronous packet manager.
|
* Retrieve the current asyncronous packet manager.
|
||||||
* @return Asyncronous packet manager.
|
* @return Asyncronous packet manager.
|
||||||
*/
|
*/
|
||||||
public AsynchronousManager getAsyncFilterManager();
|
public AsynchronousManager getAsynchronousManager();
|
||||||
}
|
}
|
@ -139,7 +139,7 @@ public final class PacketFilterManager implements ProtocolManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public AsynchronousManager getAsyncFilterManager() {
|
public AsynchronousManager getAsynchronousManager() {
|
||||||
return asyncFilterManager;
|
return asyncFilterManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user