After adding a Queue to read incoming packets (client -> server):
Code:
/**
* This {@link java.util.Queue} contains all the {@link org.niobe.net.packet.GamePacket}s
* that will be executed upon {@link org.niobe.world.update.player.PrePlayerGameUpdate#run()}.
*/
private final Queue<GamePacket> incomingPackets = new ConcurrentLinkedQueue<GamePacket>();
My DefaultGamePacket doesn't seem to be read, the queue's size is 1 and yet the pre player update doesn't seem to fetch the packet from the queue... (which is weird because all other packets are read).
Also, if I call the read method directly (from the game packet manager's parse method), it works fine