snocavotia Posted November 18, 2013 Posted November 18, 2013 I have @NetworkMod(clientSideRequired=true, serverSideRequired=true, channels={"GenericRandom"}, packetHandler = PacketHandler.class) above my public class ModMain But I have a println statment in my onPacketData just to test that it's working and its not. I'm calling PacketDispatcher.sendPacketToPlayer(packet, (Player)player); from a server tick handler. every tick. I have a println right above it just to make sure its running and it is. Any ideas? Quote
Draco18s Posted November 18, 2013 Posted November 18, 2013 Use a sided packet handler: clientPacketHandlerSpec = @SidedPacketHandler(channels = {"GenericRandom"}, packetHandler = PacketHandlerClient.class) Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Draco18s Posted November 18, 2013 Posted November 18, 2013 Because I know it works? Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Draco18s Posted November 18, 2013 Posted November 18, 2013 Lets make this real simple: Your packet handler is not receiving packets. Ergo your annotations are not set up correctly. Quote Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.