mirror of
https://github.com/ViaVersion/ViaFabric.git
synced 2024-11-24 12:06:11 +01:00
Some changes in handlers, fix runnables, remove unused imports
This commit is contained in:
parent
469db0ffda
commit
735d6a4eb5
@ -3,10 +3,7 @@ package com.github.creeper123123321.viarift.handler;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import io.netty.channel.ChannelHandlerContext;
|
||||
import io.netty.handler.codec.ByteToMessageDecoder;
|
||||
import io.netty.handler.codec.MessageToByteEncoder;
|
||||
import io.netty.handler.codec.MessageToMessageDecoder;
|
||||
import us.myles.ViaVersion.api.PacketWrapper;
|
||||
import us.myles.ViaVersion.api.Via;
|
||||
import us.myles.ViaVersion.api.data.UserConnection;
|
||||
import us.myles.ViaVersion.api.type.Type;
|
||||
import us.myles.ViaVersion.exception.CancelException;
|
||||
|
@ -4,7 +4,6 @@ import com.github.creeper123123321.viarift.handler.VRInHandler;
|
||||
import com.github.creeper123123321.viarift.handler.VROutHandler;
|
||||
import com.github.creeper123123321.viarift.platform.VRUserConnection;
|
||||
import io.netty.channel.Channel;
|
||||
import io.netty.channel.ChannelHandler;
|
||||
import io.netty.channel.socket.SocketChannel;
|
||||
import io.netty.handler.codec.ByteToMessageDecoder;
|
||||
import io.netty.handler.codec.MessageToByteEncoder;
|
||||
|
@ -1,6 +1,5 @@
|
||||
package com.github.creeper123123321.viarift.provider;
|
||||
|
||||
import com.github.creeper123123321.viarift.util.PipelineUtil;
|
||||
import io.netty.buffer.ByteBuf;
|
||||
import us.myles.ViaVersion.api.PacketWrapper;
|
||||
import us.myles.ViaVersion.api.data.UserConnection;
|
||||
|
@ -14,6 +14,7 @@ public class DelayedRunnable implements Runnable {
|
||||
try {
|
||||
Thread.sleep(delay);
|
||||
} catch (InterruptedException ignored) {
|
||||
return;
|
||||
}
|
||||
runnable.run();
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ public class LoopRunnable implements Runnable {
|
||||
try {
|
||||
Thread.sleep(interval);
|
||||
} catch (InterruptedException ignored) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -13,8 +13,4 @@ public class PipelineUtil {
|
||||
}
|
||||
return pipe.context(previous);
|
||||
}
|
||||
|
||||
public static ChannelHandlerContext getContextAfter(String name, ChannelPipeline pipe) {
|
||||
return us.myles.ViaVersion.util.PipelineUtil.getContextBefore(name, pipe);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user