From 5c5e1b3dd0985986a941a65726f8f2d7bff7a188 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Fri, 17 Nov 2023 01:22:57 -0500 Subject: Add type variable to signature of send and accept --- src/main/java/net/cshift/api/transit/network/Channel.java | 4 ++-- src/main/java/net/cshift/api/transit/network/INode.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/main/java/net/cshift/api/transit/network/Channel.java b/src/main/java/net/cshift/api/transit/network/Channel.java index 3fdae88..758c7d4 100644 --- a/src/main/java/net/cshift/api/transit/network/Channel.java +++ b/src/main/java/net/cshift/api/transit/network/Channel.java @@ -139,8 +139,8 @@ public final class Channel { * @param packet the packet to send * @return The overflow data if the packet is only partially accepted. {@code null} otherwise. */ - public IStaticPacket send(IStaticPacket packet) + public IStaticPacket send(IStaticPacket packet) { - return to.accept(packet, this); + return to.accept(packet, this); } } diff --git a/src/main/java/net/cshift/api/transit/network/INode.java b/src/main/java/net/cshift/api/transit/network/INode.java index 6653e40..ad9f1d3 100644 --- a/src/main/java/net/cshift/api/transit/network/INode.java +++ b/src/main/java/net/cshift/api/transit/network/INode.java @@ -45,7 +45,7 @@ public interface INode * @param channel The channel which the packet is coming through * @return The overflow data if the packet is only partially accepted. {@code null} otherwise. */ - public IStaticPacket accept(IStaticPacket packet, Channel channel); + public IStaticPacket accept(IStaticPacket packet, Channel channel); /** Pressure * -- cgit v1.2.3