Jump to content

ReceivePacketEvent not triggering


Idfk_man

Recommended Posts

 

I have a mod that is not executing receive packet events when I run 

@SubscribeEvent

public void receivePacket(ReceivePacketEvent event) { 

Nothing will happen. Other events will work like on render or tick event but packet wont work. for reference I'm using this mod in a server

I get an error seemingly randomly that looks like this and im not sure where it comes from or if it affects the packet event so id say im lost

some help would be appreciated 

thankyou!

 

Quote

[01:22:45] [main/FATAL] (Minecraft) Error executing task
 java.util.concurrent.ExecutionException: java.lang.NullPointerException
    at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_351]
    at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_351]
    at net.minecraft.util.Util.runTask(Util.java:43) [Util.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:987) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:443) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:111) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_351]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_351]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_351]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_351]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at net.fabricmc.devlaunchinjector.Main.main(Main.java:86) [dev-launch-injector-0.2.1+build.8.jar:?]
Caused by: java.lang.NullPointerException
    at net.minecraft.scoreboard.Scoreboard.removeTeam(Scoreboard.java:240) ~[Scoreboard.class:?]
    at net.minecraft.client.network.NetHandlerPlayClient.handleTeams(NetHandlerPlayClient.java:1452) ~[NetHandlerPlayClient.class:?]
    at net.minecraft.network.play.server.S3EPacketTeams.processPacket(S3EPacketTeams.java:114) ~[S3EPacketTeams.class:?]
    at net.minecraft.network.play.server.S3EPacketTeams.processPacket(S3EPacketTeams.java:36) ~[S3EPacketTeams.class:?]
    at net.minecraft.network.PacketThreadUtil$1.run(PacketThreadUtil.java:24) ~[PacketThreadUtil$1.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[?:1.8.0_351]
    at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_351]
    at net.minecraft.util.Util.runTask(Util.java:42) ~[Util.class:?]
    ... 10 more

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.