entity.toPacket instead of making the packet in the tellPeers function.