Skip to content

Commit e45bae1

Browse files
remove legacy channel handlers & just yolo the server channel injection
1 parent 4cdf38e commit e45bae1

File tree

17 files changed

+133
-831
lines changed

17 files changed

+133
-831
lines changed

1_7/pom.xml

Lines changed: 0 additions & 49 deletions
This file was deleted.

1_7/src/org/inventivetalent/packetlistener/channel/NMUChannel.java

Lines changed: 0 additions & 179 deletions
This file was deleted.

1_8/pom.xml

Lines changed: 0 additions & 49 deletions
This file was deleted.

API/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
<dependency>
3737
<groupId>org.inventivetalent</groupId>
3838
<artifactId>reflectionhelper</artifactId>
39-
<version>1.16.0-SNAPSHOT</version>
39+
<version>1.16.1-SNAPSHOT</version>
4040
</dependency>
4141
<dependency>
4242
<groupId>org.inventivetalent</groupId>

API/src/org/inventivetalent/packetlistener/ChannelInjector.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ public boolean inject(IPacketListener iPacketListener) {
1919
List<Exception> exceptions = new ArrayList<>();
2020
try {
2121
Class.forName("net.minecraft.util.io.netty.channel.Channel");
22-
channel = newChannelInstance(iPacketListener, "org.inventivetalent.packetlistener.channel.NMUChannel");
23-
System.out.println("[PacketListenerAPI] Using NMUChannel");
24-
return true;
22+
throw new UnsupportedOperationException("Unsupported Server Version!");
2523
} catch (Exception e) {
2624
exceptions.add(e);
2725
}

0 commit comments

Comments
 (0)